Please read this document to set up your environment for jms client.
http://docs.oracle.com/cd/E26576_01/doc.312/e24945/overview.htm#aeqar
Table 1-1 .jar Files Needed in CLASSPATH
Type of Code
To Compile
To Run
Remarks
JMS client
jms.jar imq.jar jndi.jar
jms.jar imq.jar jndi.jar
Directory containing compiled Java application or '.'
See discussion of JNDI .jar files, following this table.
Thanks,
David Zhao
> -----Original Message-----
> From: forums_at_java.net [mailto:forums_at_java.net]
> Sent: Monday, March 25, 2013 10:01 PM
> To: users_at_glassfish.java.net
> Subject: Re: Standalone client of GlassFish v3
>
> I've read that and it's unworkable. My clients do NOT have an installed
> glassfish, the jar list inside the gf-client.jar is ridiculous!!!! It
> includes 145 jars, including things like Derby jars which I know I have
> no need for. It includes enough jars to run a server, not satisfy just
> the clients needs. What jars do I need for a Stand Alone client to
> connect to a Cluster JMS and to access clustered EJB on glassfish, the
> absolute thinnest possible?
>
> --
>
> [Message sent by forum member 'catman']
>
> View Post: http://forums.java.net/node/701865
>
>