> What is the "proper" way to implement non-servlet singleton components in
> the Tomcat framework?

I am not sure of any proper way, but I have a class that has a static
method that returns a reference to a private member variable.
The class has no constructor, and the getInstance() method 
creates the returned reference object if its not already present.
Otherwise it returns the existing instance.

This approach is used in Connection Pooling classes, and it works
fine for me.

Regards
Shahed.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to