Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 Connection Pool

Status
Not open for further replies.

Hattusas

Programmer
Nov 11, 2001
344
TR
Greetings .
I am trying to use the DB2Connection class (that is to say COM.ibm.db2.jdbc.net or COM.ibm.db2.jdbc.net)

I constructed my connection pool.Database ise IBM DB2 version 7.1
I can get my connection succesfully by lookup method.
The connection returned is however is java.sql.Connection class.

I don't want that. What I want to obtain is DB2Connection class.As far as I konw DB2Connection implements Connection but when casting it,it gives ClassCastExceptionError.

Is there any way to achieve the DB2Connection class as a connection?
Thanks


Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
turkey_clr.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top