The "java:" prefix means "available only in the same JVM".
See the wiki on JmsRA
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.
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.
And it worked !!