Re: Context Chicken & Egg Problem

2009-12-15 Thread David Fisher
Hi Chris, Current architecture is to share a jar in shared/lib between the main webapps, an admin webapps and a localhost only management webapps. This was originally in Tomcat 3. New architecture will separate each, drop the management webapps and we'll control contexts via multicasting, j

Re: Context Chicken & Egg Problem

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/14/2009 11:58 AM, Christopher Schultz wrote: > FWIW, we recently moved from 5.5 to 5.0 in our development environment Thanks, Ken. s/5\.0/6.0/ :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using Gnu

Re: Context Chicken & Egg Problem

2009-12-14 Thread Ken Bowen
Now that's really retro. :-) On Dec 14, 2009, at 11:58 AM, Christopher Schultz wrote: FWIW, we recently moved from 5.5 to 5.0 in our development environment - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org F

Re: Context Chicken & Egg Problem

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/11/2009 3:39 PM, David Fisher wrote: >> Finally, you might consider using a ServletContextListener instead of a >> Servlet, as this is the recommended practice for context setup. You can >> still provide a servlet to report on the status

Re: Context Chicken & Egg Problem

2009-12-11 Thread David Fisher
Hi Chris, public class UniverseLoader extends HttpServlet { protected long timeLoaded; public void init() throws ServletException { new Thread(new LoadUniverseTask()).start(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletExcept

Re: Context Chicken & Egg Problem

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/10/2009 9:08 PM, David Fisher wrote: > public class UniverseLoader extends HttpServlet { > > protected long timeLoaded; > > public void init() throws ServletException { > new Thread(new LoadUniverseTask()).start(); >

Re: Context Chicken & Egg Problem

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, > Original Message > Subject: RE: Context Chicken & Egg Problem > From: "Caldarale, Charles R" > Date: Thu, December 10, 2009 6:24 pm > To: Tomcat Users List > >> From: sh...@radiant

Re: Context Chicken & Egg Problem

2009-12-10 Thread David Fisher
s, Dave On Dec 10, 2009, at 5:34 PM, sh...@radiantblue.com wrote: Thank you Chuck. That is exactly what I was looking for. Original Message ---- Subject: RE: Context Chicken & Egg Problem From: "Caldarale, Charles R" Date: Thu, December 10, 2009 6:24 pm To: Tomc

RE: Context Chicken & Egg Problem

2009-12-10 Thread shatt
Thank you Chuck. That is exactly what I was looking for. Original Message Subject: RE: Context Chicken & Egg Problem From: "Caldarale, Charles R" Date: Thu, December 10, 2009 6:24 pm To: Tomcat Users List > From: sh...@radiantblue.com [mailto:sh...@radiantbl

RE: Context Chicken & Egg Problem

2009-12-10 Thread Caldarale, Charles R
> From: sh...@radiantblue.com [mailto:sh...@radiantblue.com] > Subject: RE: Context Chicken & Egg Problem > > just a curiosity as to what is happening under the Tomcat > covers during this scenario. Tomcat initialization is single-thread, so if webapp A happens to get initia

RE: Context Chicken & Egg Problem

2009-12-10 Thread shatt
Thanks for your reply Chris. I mentioned in one of the replies that this is only a question regarding why an app in the initialization phase should or should not make an HTTP call, for whatever reason, to a "yet to be initialized" context in the same container. This is a case of "I want to run the

Re: Context Chicken & Egg Problem

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, On 12/10/2009 12:45 PM, Scot Hatt wrote: > So either I am just not able to adequately describe what I am seeing, nobody > has dealt with this issue, or I am completely missing the forest through the > trees via the information you are providing.

Re: Context Chicken & Egg Problem

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, On 12/10/2009 10:32 AM, Scot Hatt wrote: > I was curious if there is a specific reference on this problem that I can > point to for my fellow devs that try to run everything on a single Tomcat > instance. Not on a single Tomcat instance, but yo

RE: Context Chicken & Egg Problem

2009-12-10 Thread Scot Hatt
s make more sense? > -Scot > > -Original Message----- > From: Ken Bowen [mailto:kbo...@als.com] > Sent: Thursday, December 10, 2009 10:47 AM > To: Tomcat Users List > Subject: Re: Context Chicken & Egg Problem > > If I understand you correctly, your problem is that

Re: Context Chicken & Egg Problem

2009-12-10 Thread Ken Bowen
- ... - Data retrieval component n fires and calls "http://localhost:8080/B/servlet/HereIsData"; - /A dies Does this make more sense? -Scot -Original Message- From: Ken Bowen [mailto:kbo...@als.com] Sent: Thursday, December 10, 2009 10:47 AM To: Tomcat Users List Subject: Re: Context

RE: Context Chicken & Egg Problem

2009-12-10 Thread Scot Hatt
e, or I am completely missing the forest through the trees via the information you are providing. -Scot -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, December 10, 2009 11:26 AM To: Tomcat Users List Subject: Re: Context Chicken & Egg Problem On 10/12/2009 16:14, S

Re: Context Chicken & Egg Problem

2009-12-10 Thread Leon Rosenberg
n fires and calls > "http://localhost:8080/B/servlet/HereIsData"; > - /A dies > > Does this make more sense? > -Scot > > -Original Message- > From: Ken Bowen [mailto:kbo...@als.com] > Sent: Thursday, December 10, 2009 10:47 AM > To: Tomcat Users List > Su

Re: Context Chicken & Egg Problem

2009-12-10 Thread Pid
t;. p -Scot -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, December 10, 2009 10:22 AM To: users@tomcat.apache.org Subject: Re: Context Chicken& Egg Problem On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list

RE: Context Chicken & Egg Problem

2009-12-10 Thread Scot Hatt
10, 2009 10:47 AM To: Tomcat Users List Subject: Re: Context Chicken & Egg Problem If I understand you correctly, your problem is that B needs to be initialized before A. (I don't understand what running locally as to do with it. ??) If that is correct, why can't you organize the in

Re: Context Chicken & Egg Problem

2009-12-10 Thread Ken Bowen
ssage- From: Pid [mailto:p...@pidster.com] Sent: Thursday, December 10, 2009 10:22 AM To: users@tomcat.apache.org Subject: Re: Context Chicken & Egg Problem On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list and trying to put together the

Re: Context Chicken & Egg Problem

2009-12-10 Thread Ken Bowen
a specific reference on this problem that I can point to for my fellow devs that try to run everything on a single Tomcat instance. -Scot -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, December 10, 2009 10:22 AM To: users@tomcat.apache.org Subject: Re: Conte

RE: Context Chicken & Egg Problem

2009-12-10 Thread Scot Hatt
this problem that I can point to for my fellow devs that try to run everything on a single Tomcat instance. -Scot -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, December 10, 2009 10:22 AM To: users@tomcat.apache.org Subject: Re: Context Chicken & Egg Problem On 1

Re: Context Chicken & Egg Problem

2009-12-10 Thread Pid
On 10/12/2009 15:22, Pid wrote: On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list and trying to put together the right set of terms to find resolution for this but have been unsuccessful. I am dealing with a situation where webapp A is calling

Re: Context Chicken & Egg Problem

2009-12-10 Thread Pid
On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list and trying to put together the right set of terms to find resolution for this but have been unsuccessful. I am dealing with a situation where webapp A is calling a servlet in webapp B during A's