pool « db2 « Java Database Q&A

Home
Java Database Q&A
1.Blob
2.cassandra
3.column
4.Connection
5.Cursor
6.dao
7.Data Type
8.Database
9.Database Product
10.DataSource
11.Date
12.db2
13.derby
14.Development
15.Driver
16.Exception
17.file
18.hadoop
19.hbase
20.hsqldb
21.ibatis
22.JDBC
23.memcached
24.mongodb
25.MS Access
26.mysql
27.ODBC
28.Operation
29.oracle
30.postgresql
31.Record
32.result
33.Resultset
34.Schema
35.SQL
36.sqlite
37.SQLserver
38.Statement
39.stored procedure
40.sybase
41.Table
42.Transaction
43.Trigger
Java Database Q&A » db2 » pool 

1. Weird DB2 database issue : Websphere Connection Pooling    stackoverflow.com

I am running a query from my java based web app running in a Websphere container. This query however, being pretty simple, fails with a weird erorr as follows:

[5/15/09 16:50:33:828 ...

2. Setting DB2 Client Audit information with a dbcp connection pool in a Java app    stackoverflow.com

I'm developing Java apps on Tomcat 5.5 using JNDI to connect to shared dbcp connection pools with JDBC 3.0 drivers and DB2 8 on zOS and also DB2 9 on LUW. ...

3. DB2 Pool Data    coderanch.com

4. Pooling DB2 connection    coderanch.com

I have some code I am trying to pool a connection for DB2 DB2ConnectionPoolDataSource dbcpds = new DB2ConnectionPoolDataSource(); dbcpds.setUser(username); dbcpds.setPassword(password); PooledConnection pc = dbcpds.getPooledConnection(); // Get a Logical connection Connection conn = pc.getConnection(); // Create a Statement Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery("SELECT current date FROM sysibm.sysdummy1"); // Iterate through the result and print while (rset.next()) out.println(rset.getString(1)); // Close ...

5. connection pool for db2    java-forums.org

6. Pooling DB2 connection    forums.oracle.com

// Close the pooled connection pc.close(); pc = null; When I run this I get an exception com.ibm.db2.jcc.a.SqlException: Failure in loading T2 native library db2jcct2 This looks like it is looking for a type 2 JDBC connection with the client. I am using a type 4 (pure java) jar. (db2jcc.jar). Is there a different way to set up a pooled connection ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.