Yes and my codes works when I put it in the service method and call the
Servlet via a browser. Only if the same code is in init does the JNDI
lookup fail.
Alexander Jerusalem
At 17:38 04.04.01, you wrote:
>do you create InitialContext in the servlet init method ?
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
>Jerusalem
>Sent: Wednesday, April 04, 2001 4:11 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] load-on-startup Servlet can't find EJB
>
>
>Hi,
>
>Has anyone heard of problems with Servlets tagged as load-on-startup not
>being able to lookup EJBs in their init method? Is it possible that EJBs
>are bound to the JNDI context only after such Servlets are already loaded?
>If this is the case what else can I do to initialize application state
>before any client can call my EJBs?
>
>(I'm using embedded tomcat with JBoss 2.1 on RedHat 7)
>
>thanks,
>Alexander Jerusalem
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user