users@glassfish.java.net

Glassfish v3 preview + EJB standalone client

From: <glassfish_at_javadesktop.org>
Date: Fri, 17 Jul 2009 00:14:04 PDT

Hello!

I've been trying to build a simple GF v3 + EJB 3 example in Eclipse 3.5 but I'm having trouble with standalone client.

Using example posted here "[i]http://www.jairrillo.com/blog/2008/04/25/example-of-ejb3-session-bean-using-eclipse-europa-and-jboss/[/i]" and some GF documentation I managed to setup and run EJB project and its Web Client part.

Now I'm trying to build the standalone client (for use with some Swing app) for this and I'm having some problems. I need to reference some jars, but all of the example I found are for GFv2.x and they use appserv-rt.jar and javaee.jar. Those 2 files are not found in GFv3 installation so I was looking for alternative. I've had to include whole bunch of jars from /modules to make the example work. Without that I was getting ClassNotFound exceptions, but it seems a bit heavyweight to include that many jars just to get it working.

So my question is what are GF v3's alternatives to [i]appserv-rt.jar + javaee.jar[/i] and how to setup [i]jndi.properties[/i] for it? Or even better, does someone have a simple HelloWorld EJB standalone client sample for GF v3?

Kind regards,
Mirko
[Message sent by forum member 'mirkoteran' (mirkoteran)]

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