[OT] Re: Using websphere datasource in Struts

2006-08-22 Thread Antonio Petrelli
Shyamsunder Reddy ha scritto: What is the best place to call Websphere DataSource in Struts application. Eheh, it's not so simple :-) Instantiate it when ActionServlet is loaded and then pass onto Model classes as reference ABSOLUTELY NOT! OR create a static class that instantiates the

Using websphere datasource in Struts

2006-08-22 Thread Shyamsunder Reddy
What is the best place to call Websphere DataSource in Struts application. Instantiate it when ActionServlet is loaded and then pass onto Model classes as reference OR create a static class that instantiates the DataSource and getConnections from this class which should be Singleton