tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: Singleton in Tomcat 6.0 not working
Date Thu, 05 Jun 2008 02:44:54 GMT

----- 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


Mime
View raw message