users@glassfish.java.net

Re: GlassFish v3, EJB 3.1 and Standalone Client

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Mon, 14 Dec 2009 14:07:57 +0100

2009/12/14 Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>:
> http://inferreddesign.wordpress.com/2009/11/04/standalone-client-with-glassfish-v3/
> does this help?

No, because the guy did not checked that JARs (or maybe they were
different back then).
He says one should use two jars:
/glassfish/lib/appserv-rt.jar (2.6 kB)
/glassfish/modules/gf-client.jar (18 kB)

So, appserv-rt.jar is nothing more than a reference to
../modules/gf-client.jar. Browse the file and you will see there is
nothing but MANIFEST.MF which points to gf-client.

gf-client, on the other hand, has MANIFEST.MF filled with _dozens_ of
references to another jars. Pulling all of them manually was something
I was hoping to avoid.

Don't you think that would be strange if 18 kB would be all client
really needs to connect to EJB server? (comparing to +/- 45MB in
Glassfish v2).

There is but one promising file: gf-client-module.jar which is
standalone JAR, I mean it has no dependency on other jars, but no one,
nowhere says a single word about this file. Maybe it will be worth
trying.