COM « 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 » COM 

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 ...

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.