File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes DB2 net Driver Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 net Driver Problem" Watch "DB2 net Driver Problem" New topic
Author

DB2 net Driver Problem

Ravi Verma
Ranch Hand

Joined: Aug 30, 2001
Posts: 42
Hi folks,
I am using the db2 net driver to access the database but i when i run the program it hangs and never comes back with a connection. I am using DB2 7 version. I put the db2java.zip in classpath but no exception nothing it simply hangs.
Any suggestions?
source:
String url = "jdbc b2://10.35.6.69:6789/EMPDB";
DriverManager.registerDriver(new COM.ibm.db2.jdbc.net.DB2Driver());
System.out.println("getting the connection");
Connection con = DriverManager.getConnection(url,"admin", "admin");
System.out.println("got the connection");
Its never prints the "got the connection" debug statement.
Thanks in Advance


Ravi
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Ravi,
Can you connect to this url/database using DB2's remote connection tool?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 net Driver Problem
 
Similar Threads
Connection Pooling in JBoss v5.0 with IBM DB2
Problem Connecting to DB2 by COM.ibm.db2.jdbc.net. DB2Driver
WebSphere connection pool to DB2
DriverManager.getConnection hangs from actionPerformed
Connection Pooling in JBoss v5.0 with IBM DB2