Get some hints from this link
http://books.google.com/books?id=bgMKmsXVbTAC&pg=PA304&vq=singleton&dq=tomcat+6+singleton+not+working&source=gbs_search_s&sig=t4ZT0XuVQsO2vs7PbKgTktLMarU#PPA141,M1
After I move the jar file to the TOMCAT/lib, only once instance is created.
weird...
Still don't know why this happend...
Thanks
Elwin
> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subject: Re: Singleton
> in Tomcat 6.0 not working> Date: Thu, 5 Jun 2008 04:44:54 +0200> > > -----
> Original Message ----- > From: "Caldarale, Charles R" <[EMAIL PROTECTED]>>
> To: "Tomcat Users List" <users@tomcat.apache.org>> Sent: Thursday, June 05,
> 2008 4:18 AM> Subject: RE: Singleton in Tomcat 6.0 not working> > > > From:
> Johnny Kewl [mailto:[EMAIL PROTECTED]> > Subject: Re: Singleton in Tomcat 6.0
> not working> >> > Doing> > RemoteDBConnections obj = new
> RemoteDBConnections().getInstance();> > would make 2 counters> > > Except the
> constructor is private, so the above can't be done outside of > > the
> RemoteDBConnections class.> > Right, he'd have to be doing in the class... I
> think he is ;)> Common ktou Ho... we have bets on this now ;)> > Also if you
> making a dB connection pool, there are quite a few good ones out > there.> >
> --------------------------------------------------------------------------->
> HARBOR : http://www.kewlstuff.co.za/index.htm> The most powerful application
> server on earth.> The only real POJO Application Server.> See it in Action :
> http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm>
> --------------------------------------------------------------------------- >
> > > ---------------------------------------------------------------------> To
> start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail:
> [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>
_________________________________________________________________
Now you can invite friends from Facebook and other groups to join you on
Windows Live⢠Messenger. Add now.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now