I did the same thing in WL5.1 and it worked super.

Tahir

> -----Original Message-----
> From: Alexander Jerusalem [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 12:36 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] load-on-startup Servlet can't find EJB
> 
> 
> I can't put it in the service method because I want that code to run 
> automatically every time JBoss starts up.
> 
> thanks,
> Alexander Jerusalem
> 
> At 18:23 04.04.01, you wrote:
> >so why dont keep it in the service ?
> >Im not sure it's safe to keep an InitialContext object 
> "alive" , can anyone
> >comment on this ?
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
> >Jerusalem
> >Sent: Wednesday, April 04, 2001 5:58 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: [JBoss-user] load-on-startup Servlet can't find EJB
> >
> >
> >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
> >
> >
> >_______________________________________________
> >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

Reply via email to