This content has been marked as final.
Show 2 replies
-
1. Re: remote queue
jaikiran Mar 6, 2006 4:32 AM (in response to pedrot)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
-
2. Re: remote queue
pedrot Mar 6, 2006 3:46 PM (in response to pedrot)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.
instead of:
Factory: java:/XAConnectionFactory
queue name: java:comp/env/jms/ncrequest
urlprovider: hostname:1099
use:
Factory: ConnectionFactory
queue name: queue/ncresponse
urlprovider: jnp://hostname:1099