Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

 « Return to Thread: JNDI Name for EJB3

JNDI Name for EJB3

by Juergen Weber :: Rate this Message:

Reply to Author | View in Thread

Hi,

I ran again into the problem of looking up an EJB3 from JNDI in a JSP (Ger 2.1.4)

The bean is

@Stateless(name="Secure3")
public class Secured3Bean implements Secured3

Deployment log says
2009-06-17 17:31:22,989 INFO  [startup] Assembling app: /projekte/geronimo-jetty6-javaee5-2.1.4/var/temp/geronimo-deployer4457332012373548807.tmpdir/Secured3Bean_ejb.jar
2009-06-17 17:31:22,993 INFO  [startup] Jndi(name=Secure3Remote) --> Ejb(deployment-id=Secured3Bean/Secure3)

So I guess JNDI name is Secure3Remote.
but context.lookup("java:comp/env/Secure3Remote") throws an exeption, also context.lookup("Secure3Remote") and all other permutations I could think of.

http://cwiki.apache.org/GMOxDEV/client-jndi-names.html did not help.

Could someone please give a hint what name I should try.

Thanks,
Juergen

 « Return to Thread: JNDI Name for EJB3