Originally posted by Ilja Preuss:
Well, in general,
- I try to avoid Singletons, and
Can you please explain why you avoid using singletone?
in our application we have tens of places that we create a connection by looking up the datasource in the application server JNDI and then using it.
I want somehow to create a singletone which will include the datasource to avoide several lookups.
thanks