RE: [JBoss-user] load-on-startup Servlet can't find EJB
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
RE: [JBoss-user] load-on-startup Servlet can't find EJB
If you cant find the standard way for startup actions, and you still want to use load-on-startup servlet, maybe try to forward the EmbeddedTomcat entry in jboss.jcml , since : ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] load-on-startup Servlet can't find EJB
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
RE: [JBoss-user] load-on-startup Servlet can't find EJB
running "startup scripts" as load-on-startup servlet init method sounds very tricky ... Isnt there a common way to do it ? a special MBean or something ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alexander Jerusalem Sent: Wednesday, April 04, 2001 6: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
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
RE: [JBoss-user] load-on-startup Servlet can't find EJB
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
RE: [JBoss-user] load-on-startup Servlet can't find EJB
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
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
RE: [JBoss-user] load-on-startup Servlet can't find EJB
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