[
https://issues.jboss.org/browse/AS7-3070?page=com.atlassian.jira.plugin.s...
]
David White updated AS7-3070:
-----------------------------
Fix Version/s: (was: 7.1.0.Final)
Workaround Description:
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
was:
The following snippet is from standalone.xml. Client-id is silently ignored and deleted
from the configuration file. It is not possible to create durable topic subscription with
this factory (the sevrer complaints about missing client-id).
{code:xml}
<pooled-connection-factory name="DURABLE_SUB_CONNECTION_FACTORY">
<transaction mode="xa"/>
<connectors>
<connector-ref connector-name="netty"/>
</connectors>
<entries>
<entry name="jms/DURABLE_SUB_CONNECTION_FACTORY"/>
</entries>
<client-id>cts3</client-id>
</pooled-connection-factory>
{code}
Steps to Reproduce: as described
Connection factory client-id does not survive server restart
------------------------------------------------------------
Key: AS7-3070
URL:
https://issues.jboss.org/browse/AS7-3070
Project: Application Server 7
Issue Type: Bug
Components: JMS
Affects Versions: 7.1.0.Beta1
Reporter: David White
Assignee: Clebert Suconic
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira