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 database connection for n java files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "database connection for n java files" Watch "database connection for n java files" New topic
Author

database connection for n java files

lokesh rajarathnam
Ranch Hand

Joined: May 17, 2007
Posts: 35
Hello all...

How can i give a connection for an 10 java files i an application only once.
How can i use context.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

Lokesh,
Why do you want to share an open connection across files?

An initial context is typically used on an application server to share a datasource (and connection pool.)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: database connection for n java files
 
Similar Threads
Class definitions 2 source
java
Tranfer files between java and unix
how to access bluetooth dongle through a j2se code
Listener Class and Regular Java