RE: Servlet init() versus doPost() Classloading???

2003-03-25 Thread Cox, Charlie
to load your context once. Charlie -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:02 PM To: Tomcat Users List Subject: Re: Servlet init() versus doPost() Classloading??? Rahul -- Yeah, you're right. The problem, though

Servlet init() versus doPost() Classloading???

2003-03-24 Thread Micael
I am having a problem with a daemon I want to create at startup. I have a singleton daemon that I used to load on startup in the init(ServletConfig) method of a servlet. The problem is that this ends up creating two versions that then run concurrently and duplicate everything they each are

Re: Servlet init() versus doPost() Classloading???

2003-03-24 Thread Justin Ruthenbeck
Hi Micael, Seems you're sidestepping the real problem by trying to initialize with a doPost call ... the init() method is, afterall, meant for such initialization. ;) Won't you have the same problem is you hit the URL twice? If there are two copies of your deamon thread starting, then the

Re: Servlet init() versus doPost() Classloading???

2003-03-24 Thread Rahul
: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 12:43 PM Subject: Re: Servlet init() versus doPost() Classloading??? Hi Micael, Seems you're sidestepping the real problem by trying to initialize with a doPost call ... the init() method

Re: Servlet init() versus doPost() Classloading???

2003-03-24 Thread Justin Ruthenbeck
Users List [EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 12:43 PM Subject: Re: Servlet init() versus doPost() Classloading??? Hi Micael, Seems you're sidestepping the real problem by trying to initialize with a doPost call ... the init() method is, afterall, meant for such initialization