[jboss-jira] [JBoss JIRA] (WFLY-11290) Look up of RemoteConnectionFactory with discovery-group is null

Miroslav Novak (Jira) issues at jboss.org
Wed Nov 7 03:34:00 EST 2018


Miroslav Novak created WFLY-11290:
-------------------------------------

             Summary: 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: Jeff Mesnil


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 at 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. 



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list