]
Miroslav Novak commented on WFLY-11290:
---------------------------------------
[~ehugonnet] Could you take a look, please?
Look up of RemoteConnectionFactory with discovery-group is null
---------------------------------------------------------------
Key: WFLY-11290
URL:
https://issues.jboss.org/browse/WFLY-11290
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 14.0.0.Final
Reporter: Miroslav Novak
Assignee: ehsavoie Hugonnet
Priority: Major
If RemoteConnectionFactory is defined with discovery-group like (note that it's
defined directly in messaging subsystem, not in <server>...</server>):
{code}
<subsystem xmlns="urn:jboss:domain:messaging-activemq:4.0">
<discovery-group name="dg-group1" jgroups-channel="ee"
jgroups-cluster="artemis-cluster" initial-wait-timeout="30000"/>
<connection-factory name="RemoteConnectionFactory"
discovery-group="dg-group1"
entries="java:jboss/exported/jms/RemoteConnectionFactory
java:/jms/RemoteConnectionFactory"/>
</subsystem>
{code}
then it registers to JNDI "java:/jms/RemoteConnectionFactory" but with
{{null}}. See JNDI view:
{code}
[standalone@localhost:9990 subsystem=naming] /subsystem=naming/:jndi-view
...
"jms" => {
"class-name" => "javax.naming.Context",
"children" => {
"RemoteConnectionFactory" => {
"class-name" => "java.lang.Object",
"value" => "null"
},
{code}
Result:
If EE deployment looks up or injects such CF then it fails on NullPointerException.