3 Replies Latest reply on Oct 23, 2008 8:31 AM by pradeeps

    JmxXA not bound

      I am creating a web application using - JBOSS 4.2.3 GA, JBOSS Messaging and Struts 2.5 messaging POJO.

      The applicationContext.xml has the entry to look up java:/JmsXA.

      JBOSS throws an exception saying JmsXA not bound. If I use the JMX console and do a view of JNDI objects I do see the resource being deployed. I went thru various posts on this problem but could not get the answer.

      Am I doing something wrong here?

      Thanks.

        • 1. Re: JmxXA not bound
          timfox

          The "java:" prefix means "available only in the same JVM".

          See the wiki on JmsRA

          • 2. Re: JmsXA not bound

            Thanks for the reply Tim.

            I have a question.

            When I deploy a war file to the JBOSS server, isnt the application running in the same JVM where JmsXA is available?

            The thing is if I replace JmsXA with ConnectionFactory it works just great. I needed JmsXA because of the distributed transactions.

            Thanks.

            • 3. Re: JmxXA not bound

              Hello Tim,

              After a lot of research I stumbled upon something interesting.

              In the jms-ds.xml file I added the following to the jmsXA connection factory definition.

              <use-java-context>false</use-java-context>

              And it worked !!

              Thanks.