Skip to Content
0
Former Member
Jun 25, 2014 at 08:43 AM

EJB JNDI Lookup String?

142 Views

Hi,

just a short question, I try to lookup an EJB from JNDI. I found some JNDI in the documentation of how to use EJB from JSP.

Unfortunately the documentation just says:

try {
  InitialContext ic = new InitialContext();
  HelloWorldBean h= (HelloWorldBean)ic.lookup("java:comp/env/<HelloWorldBean_Lookup_String>");
  out.println(h.sayHello());
}
catch...

I'm pretty sure "<HelloWorldBean_Lookup_String>" is not the correct lookup string 🤣

Which one is it?

Frank