Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3070

Connection factory client-id does not survive server restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.Final
    • 7.1.0.Beta1
    • JMS, Server
    • Hide

      as described

      Show
      as described
    • Hide

      Add the following lines to the jboss startup script after the wait for startup:
      /opt/jboss/bin/jboss-admin.sh -c << EOF
      /subsystem=messaging/hornetq-server=default/connection-factory=InVmConnectionFactory:remove
      /subsystem=messaging/hornetq-server=default/connection-factory=InVmConnectionFactory:add(connector=

      {"in-vm"=>undefined}

      ,entries=["java:/ConnectionFactory"],client-id=my-client-id)
      quit
      EOF
      n.b. :write-attribute does not work - it appears to work if issued twice, and the client-id
      appears to be set according to :read-resource, but running code does not have the client-id

      Show
      Add the following lines to the jboss startup script after the wait for startup: /opt/jboss/bin/jboss-admin.sh -c << EOF /subsystem=messaging/hornetq-server=default/connection-factory=InVmConnectionFactory:remove /subsystem=messaging/hornetq-server=default/connection-factory=InVmConnectionFactory:add(connector= {"in-vm"=>undefined} ,entries= ["java:/ConnectionFactory"] ,client-id=my-client-id) quit EOF n.b. :write-attribute does not work - it appears to work if issued twice, and the client-id appears to be set according to :read-resource, but running code does not have the client-id

    Description

      You can add a client-id in standalone.xml e.g.
      <connection-factory name="InVmConnectionFactory">
      <client-id>my-client-id</client-id>
      <connectors>
      <connector-ref connector-name="in-vm"/>
      </connectors>
      <entries>
      <entry name="java:/ConnectionFactory"/>
      </entries>
      </connection-factory>
      But after a re-start, the client-id is missing
      standalone.xml has been silently re-written without the client-id

      Attachments

        Issue Links

          Activity

            People

              csuconic@redhat.com Clebert Suconic
              davidw53_jira David White (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: