• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database connection for n java files

 
lokesh rajarathnam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic