users@glassfish.java.net

Re: connectionFactory jndi lookup from standalone client

From: <glassfish_at_javadesktop.org>
Date: Mon, 20 Apr 2009 10:13:57 PDT

Try these settings (which work for me using GF 2.1):
java.naming.provider.url=iiop://localhost:3700
org.omg.CORBA.ORBInitialHost=localhost

This assumes GF is running on localhost - change that if not.

I am not sure of how JNDI works but I [b]think[/b] that the .url starts it off, and the type on that directs further actions. Here, iiop means uses CORBA, and it looks for the ORBInitialHost, etc. In your case, the mq isn't understood by GF so the lookup fails.
[Message sent by forum member 'matterbury' (matterbury)]

http://forums.java.net/jive/thread.jspa?messageID=342888