Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

connection pooling in websphere

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We need to retrieve datasource at client code to get benifit of pooled connections from an application server for connecting to databse. We retrieve it using JNDI.
Can we get benifit of implicit connection pooling provided by websphere without using JNDI.
thanks
Vikas
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere Forum...
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do not think you can do this.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vikasids sharma:
We need to retrieve datasource at client code to get benifit of pooled connections from an application server for connecting to databse. We retrieve it using JNDI.
Can we get benifit of implicit connection pooling provided by websphere without using JNDI.
thanks
Vikas


What do you gain by avoiding JNDI ? Although JNDI lookup is a costly operation , you don't need to do it everytime you access the database. There can be a utility class in your app that caches the DataSource object and you can provide a static method on that class to get connection. There will be only one JNDI call to get the DataSource and later on the DataSource object can be used again and again.
Regards,
Ashoke Bhowmick
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic