users@glassfish.java.net

Re: GlassFish v3, EJB 3.1 and Standalone Client

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Mon, 14 Dec 2009 14:21:33 +0100

gf-client.jar (and its dependencies) is what you should use.
appserv-rt.jar is for compatibility with v2.x.
Having said this, the ACC remains the preferred (portable) approach.
-Alexis

On Dec 14, 2009, at 14:07, Witold Szczerba wrote:

> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>