• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

where to use the connection

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, I have a small query
Where is it recommended to open a connection object , at application level so that every body goes thru the same connection, session level so that the connection is valid for particular session or for every page.
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your Connection Pool so a limited number of Connections can be shared throughout your webapp and the time to create Connections is removed from normal processing. Most servers easily support JNDI DataSource Pools. You can use the one provided by your server. If you are using an older server which doen't support JNDI, I recommend you try a pooling class like DbConnectionBroker from http://www.javaexchange.com
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Carl Trusiak:
In your Connection Pool so a limited number of Connections can be shared throughout your webapp and the time to create Connections is removed from normal processing. Most servers easily support JNDI DataSource Pools. You can use the one provided by your server. If you are using an older server which doen't support JNDI, I recommend you try a pooling class like DbConnectionBroker from http://www.javaexchange.com


Hi,
set the java bean propery as request
reply
    Bookmark Topic Watch Topic
  • New Topic