468,257 Members | 1,439 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

slow connections with DB2DataSource

Its taking ages (600msec) to get connections.

I am running my application outside of a J2EE container environment
using DB2 UDB 7. It all works, its just slow. If I switch to JDBC
connections it still takes 600msec suggesting that my DB2DataSource
isnt actually using connection pooling. Do I need to configure it? Any
help would be appreciated.

Thanks John

Code I'm using:

dsource = new COM.ibm.db2.jdbc.DB2DataSource();
Context ctx = null;
Hashtable env = new Hashtable(5);
env.put ("java.naming.factory.initial",
ctx = new InitialContext(env);
ctx.bind(dataSourceName, dsource);
ds = (DataSource) ctx.lookup(dataSourceName);
conn = ds.getConnection(datasourceUser, datasourcePassword);
Nov 12 '05 #1
0 1351

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rami Saarinen | last post: by
5 posts views Thread by Carlos Moreno | last post: by
1 post views Thread by Mike Read | last post: by
46 posts views Thread by dunleav1 | last post: by
reply views Thread by Pratchaya | last post: by
4 posts views Thread by bluepete | last post: by
3 posts views Thread by Christian Welzel | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.