tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktou Ho <hk...@hotmail.com>
Subject RE: Singleton in Tomcat 6.0 not working
Date Thu, 05 Jun 2008 03:57:44 GMT

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: john@kewlstuff.co.za> 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" <Chuck.Caldarale@unisys.com>> 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:john@kewlstuff.co.za]> > 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: users-unsubscribe@tomcat.apache.org>
For additional commands, e-mail: users-help@tomcat.apache.org> 
_________________________________________________________________
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message