Yes that works perfectly well.
At 18:09 04.04.01, you wrote:
>Can you successfully look up the EJBs in your doGet method?
>
>On Wed, 4 Apr 2001, Shahar Solomianik 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
> >
>
>--
>Dan Christopherson (danch)
>nVisia Technical Architect (www.nvisia.com)
>
>Opinions expressed are mine and do not neccessarily reflect any
>position or opinion of nVISIA.
>
>---------------------------------------------------------------------------
>If you're a capitalist and you have the best goods and they're
>free, you don't have to proselytize, you just have to wait.
>-Eben Moglen
>
>
>_______________________________________________
>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