5 Replies Latest reply on Mar 15, 2012 5:36 AM by Ava Huxley

    Exceptions after changing connection.type from netty to jndi: SEVERE: JBAS011855: Name 'RemoteConnectionFactory' not found in context ''

    Ava Huxley Newbie

      At file jboss-as-quickstarts-7.1.0.Final\helloworld-jms\pom.xml, change connection.type from netty to jndi, then:

       

      mvn compile exec:java

      ...

      INFO: Attempting to acquire ConnectionFactory with a connection type of: jndi

      Mar 13, 2012 12:19:09 AM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main

      SEVERE: JBAS011855: Name 'RemoteConnectionFactory' not found in context ''

      ...

       

      At standalone.xml of JBossAS 7.1:

       

      <jms-connection-factories>

          <connection-factory name="InVmConnectionFactory">

              <connectors>

                  <connector-ref connector-name="in-vm"/>

              </connectors>

              <entries>

                  <entry name="java:/ConnectionFactory"/>

              </entries>

          </connection-factory>

          <connection-factory name="RemoteConnectionFactory">

              <connectors>

                  <connector-ref connector-name="netty"/>

              </connectors>

              <entries>

                  <entry name="RemoteConnectionFactory"/>

                  <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>

              </entries>

          </connection-factory>

          <pooled-connection-factory name="hornetq-ra">

              <transaction mode="xa"/>

              <connectors>

                  <connector-ref connector-name="in-vm"/>

              </connectors>

              <entries>

                  <entry name="java:/JmsXA"/>

              </entries>

          </pooled-connection-factory>

      </jms-connection-factories>

       

      Is JNDI lookup supported in JBossAS 7.1 in this case?