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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reusing JDBC Database Connection Variable 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
0
0
US
Hello,

If I create a database object variable (oConn) on one (Main App) page how can I use this same connection variable on other pages this page may spawn?

I want to do this rather than opening numerous database connections to the database (Oracle 9i) or having to open and close the connection on every page.

Thanks,

Michael42
 
Diancecht,

Thanks for posting. That is a very useful link. :)

Thanks,

Michael42
 
Use connection pooling. Not mentioning any names.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top