users@glassfish.java.net

Re: Why do I need GlassFish running to get standalone JMS client to work.

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Apr 2007 04:42:22 PDT

Did you try setting these jvm args

"-Dorg.omg.CORBA.ORBInitialHost=${ORBhost}"
"-Dorg.omg.CORBA.ORBInitialPort=${ORBport}"

ORBHost and ORBport refer to the instance where glassfish is running , port should be 3700 (default value)

This is present in
https://glassfish.dev.java.net/javaee5/docs/DG/beakt.html#beali

if you follow the instructions in that doc you would'nt need to pass properties while creating the initialcontext. The document mentions only 3 jar files, but you also have to include webservices-rt.
[Message sent by forum member 'rampsarathy' (rampsarathy)]

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