users@glassfish.java.net

JMS Context connection problem

From: Mark Webb <elihusmails_at_gmail.com>
Date: Fri, 2 May 2008 16:54:49 -0400

I am having a problem trying to figure out how to get a client to
connect to Glassfish in order send/receive messages using JMS. I have
tried to use different parameters for the Context Properties and have
not gotten the right combination. I have tried the following and it
does not work.
props.setProperty("java.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");


Also, I am not sure what the URL should be for:
props.setProperty("java.naming.provider.url", XXX);



Any help would be greatly appreciated.
Thanks