Although I haven't tested these claims, I'm getting my javax.sql.DataSource every time I get a Connection (with Connection and PreparedStatement pooling on Tomcat): connection = getDataSource().getConnection();. I'm not sure if this answers your question.
- Jim
At 11:32 AM 1/12/2004 -0500, you wrote:
What is the best practice for establishing a data source connection using JNDI. I am using the DAO pattern for database access but where is the best location for placing the code that initializes the data source? I am using connection pooling. I am moving a Struts application into a Portlet. The core servlet is com.ibm.wps.portlets.struts.WpsStrutsPortlet.
Thanks
______________________________
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
Fax: 1-310-825-4835
______________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]