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 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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in accessing data from DB2 v9