COM « db2 « Java Database Q&A





1. COM.ibm.db2.jdbc.DB2DataSource - Bug?    coderanch.com

2. Problem Connecting to DB2 by COM.ibm.db2.jdbc.net. DB2Driver    coderanch.com

Hi, I am getting problem when making connection to DB2, which resides on mainframe. I am using COM.ibm.db2.jdbc.net.DB2Driver driver I am using this piece of code try { Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance(); System.out.println("Class COM.ibm.db2.jdbc.net.DB2Driver loaded"); String url = "jdbc : db2://server: port/database"; System.out.println("Getting a connection"); con = DriverManager.getConnection(url, "user", "password"); (hangs up) System.out.println("Got connection"); } catch (Exception ex) { System.out.println("Exception : " +ex.getMessage()); ex.printStackTrace(); ...

3. com.ibm.websphere.ce.cm.StaleConnectionException when connecting with DB2    coderanch.com

Hi all, I am using the JDBC connectivity to connect with DB2 database. My application is running on WebSphere 6.0 My code was working fine earlier. But suddenly it is not establishing the connections with DB2. I am getting the error below and inside the Connection object i am having the error message as "com.ibm.websphere.ce.cm.StaleConnectionException". Could somebody help me on this ...