users@glassfish.java.net

Re: calling an ejb from an junit test running in eclipse

From: <glassfish_at_javadesktop.org>
Date: Tue, 05 Feb 2008 10:49:14 PST

Hi

The default jndi.properties is in glassfish.home/lib/appserv-rt.jar. So you just need to include appserv-rt.jar in your classpath (usually to the beginning of the client classpath to avoid being overridden). Of course, you will also need glassfish.home/lib/javaee.jar for compilation and runtime.

Glassfish EJB FAQ:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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