I'm having a problem trying to make a Session Bean send a JMS message to a queue deployed in another host with another instance of JBoss with the same versions
What's the problem? Do you see any exceptions? If yes, then post the stack trace.
Make sure that while looking up the remote queue, you are intializing the IntialContext properly to point to the remote machine.
Make sure that the following properties are set, while creating the Initial context:
Context.PROVIDER_URL=jnp://remoteServerName:1099 Context.INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory Context.URL_PKG_PREFIXES=org.jboss.naming:org.jnp.interfaces
I fixed the problem changing the JNDI names.
When the queue is remote you don't declare it neither in ejb-jar.xml nor in jboss.
queue name: java:comp/env/jms/ncrequest
queue name: queue/ncresponse