Hi,
I am using websphere application developer for my
j2ee application (
jsp,
servlets). I have to do connection pooling for my application.
for this I have configured a datasource object in websphere.
I am using javax.sql.DataSource object to get the connection
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/ds1");
Connection con = ds.getConnection(userid, pwd);
I want to know that whether using a javax.sql.DataSource object as above will provide connection pooling.
Or do I have to used objects of javax.sql.PooledConnection or javax.sql.ConnectionPoolDataSource classes.
Thanks,
Richa