Share Connection between classes in client app
From: DM (mackdaddy315_at_hotmail.com)
Date: 06/30/04
- Next message: Alex Molochnikov: "Re: Looking for the right Database"
- Previous message: Luke McCarthy: "Re: JDBC + SSL = "No trusted certificate found" (RESOLVED)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jun 2004 06:18:13 -0700
Hello folks,
I am writing a client based application in Java. The program will
Connect to an Oracle server via JDBC and run various tasks (mostly
selects for reporting purposes). Right now I have each task broken up
into a separate class file so each one creates and handles its own
connection. In web apps I use connection pools but this is not an
option with this project. Is there a way to share a single connection
within a application so that you don't have to pass it to every class
( ie myclass(Connection con) ).
Thanks
- Next message: Alex Molochnikov: "Re: Looking for the right Database"
- Previous message: Luke McCarthy: "Re: JDBC + SSL = "No trusted certificate found" (RESOLVED)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|