Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DB2 net Driver Problem

 
Ravi Verma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi,
Can you connect to this url/database using DB2's remote connection tool?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic