I'm trying to test sending a JMS message from one JBoss Server (3.2.7) to another, while both servers are on the same machine (I used ports-binding.xml to sort the two instances out). The two servers run exactly the same ear, and have the same exact JMS destinations.
An EJB is sending the message, and it defines its resource ref as jms/CrossPostQueue. Then, in jboss.xml, I provide the mapping as follows:
<resource-ref> <res-ref-name>jms/CrossPostQueue</res-ref-name> <jndi-name>jnp://localhost:1199/queue/transactionware-enterprise-async-services</jndi-name> </resource-ref>