vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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", "COM.ibm.db2.jndi.DB2InitialContextFactory"); ctx = new InitialContext(env); ctx.bind(dataSourceName, dsource); ds = (DataSource) ctx.lookup(dataSourceName); conn = ds.getConnection(datasourceUser, datasourcePassword); |