This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Chat Application
Detecting connection request
No suitable driver Error in Test Class
JDBC Conection pool
Accessing MS ACCESS [Tomcat SERVER] Problem