EJP wrote:The link I gave above takes you to the place in the GlassFish documentation which describes how to access GlassFish JNDI resources (such as connection factories and topics) from a ordinary client with its own main() method.
The OP's client consists of a main() method which does not execute in the Glassfish environment.
929530 wrote:Works for me. I get
the folloing is the error in finding out the iiop port
D:\Documents and Settings\test>asadmin get "configs.config.server-config.iiop-se
No matches resulted from the wildcard expression.
CLI137 Command get failed.
D:\Documents and Settings\test>
929530 wrote:I've pointed you at the documentation for how to connect to GlassFish's JNDI provider. If you have problems following it I'd suggest asking on the GlassFish user forum at http://www.java.net/forums/glassfish/glassfish
can you send me the working code?
It will be very helpful...