It's not a secret anymore!*
The moose likes JDBC and the fly likes Problem in accessing data from DB2 v9 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in accessing data from DB2 v9" Watch "Problem in accessing data from DB2 v9" New topic
Author

Problem in accessing data from DB2 v9

Abhishek Purwar
Ranch Hand

Joined: Dec 15, 2007
Posts: 63

Hello friends..
I had encountered a problem in establishing connection between DB2v9 and web application page(using servlet,beans and jsp)........
I mention :

Class.forName("com.ibm.db2.jcc.DB2Driver);
Connection con=DriverManager.getConnection("jdbc:db2://localhost/airlines", "<system loginid>","<system password>");


Whether the above method of establishing connection is correct or not.....do tell me....
And shall we use same methods as with other database such as MYSQL for retrieving data ........


Abhishek Purwar,
Bangalore.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"@bhishek Purwar ",
Please check your private messages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Abhishek Purwar,
Thanks.
 
 
subject: Problem in accessing data from DB2 v9
 
Similar Threads
Detecting connection request
Chat Application
No suitable driver Error in Test Class
Accessing MS ACCESS [Tomcat SERVER] Problem
JDBC Conection pool