This content has been marked as final.
Show 2 replies
-
1. Re: Cannot send a message to a queue
rino_salvade Jan 1, 2005 7:54 AM (in response to chrismalan)The initial context is normaly a RMI reference. So if no RMI server is running, this will fail. To my knowledge if you do not set the provider_URL then the NamingContext uses the VM Naming instance set by the Main MBean.
Hope this does the trick, I have not tested it.
Make sure that no jndi.properties file is sitting around. -
2. Re: Cannot send a message to a queue
chrismalan Jan 1, 2005 9:20 AM (in response to chrismalan)"rino_salvade" wrote:
The initial context is normaly a RMI reference. So if no RMI server is running, this will fail. To my knowledge if you do not set the provider_URL then the NamingContext uses the VM Naming instance set by the Main MBean.
Hope this does the trick, I have not tested it.
Make sure that no jndi.properties file is sitting around.
Hi Rino,
Thanks. You are absolutely right. I now no longer put the provider_URL in the initial context and use the JVM connectionFactory which does not use socket connections. The whole application runs in the same JVM. Everything now works as it is supposed to. Thanks again.
Chris