1 Reply Latest reply on Nov 26, 2012 6:24 AM by Yong Hao Gao

    How can I access local JMS queue?

    abba2003 Newbie

      Hi , I'm a newbie and I'm using EAP6.0

            I need to read JMS messages from the JMS queue in the same server where my WAR runs.

            I just followed the helloworld-jms example in the quick start but there are some issues that I want to ask here:

       

      1. in the POM file, if I added the following dependency, then all the jms jars will be packed into the WAR.  I works but if I deployed 2 WARs,

         there will be an exception: "org.jboss.msc.service.DuplicateServiceException: Service jboss.pojo."org.jboss.netty.internal.LoggerConfigurator".DESCRIBED is already registered

        I dont want to pack them in the WAR, so what should I configure in the POM?

          

       

             <dependency>

               <groupId>org.jboss.as</groupId>

               <artifactId>jboss-as-jms-client-bom</artifactId>

               <version>7.1.2.Final-redhat-1</version>

               <type>pom</type>

        </dependency>

       

      2.  the helloworld-jms example is for remote client, see below. I think I should use something else since my JMS provider is in the same server where my WAR runs. So what vaules should I use for the JNDI and connection factory?

       

      "org.jboss.naming.remote.client.InitialContextFactory";

      "remote://localhost:4447";

      "jms/RemoteConnectionFactory";