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

    • Steps to Reproduce:
      Hide

      as described

      Show
      as described
    • Workaround Description:
      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  clebert.suconic Clebert Suconic
                  Reporter:
                  davidw53 David White
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: