• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Difference between getting Connection directly from the pool or from a DataSource

 
Ranch Hand
Posts: 42
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the difference between getting a connection directly from a Connection Pool

and getting a connection from a Datasource

at the end the result will be the same : a connection from the connection pool will be returned ... so what's the difference between the two techniques ?
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The difference as getting from the Connection Pool directly means coupling your application to WebLogic. Looking up a datasource in JNDI is as vendor independent as you can get.
[ December 03, 2002: Message edited by: Chris Mathews ]
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The first case
1) Connection is created for you every time
2) Is a huge performance bottleneck since it uses reflection API
 
reply
    Bookmark Topic Watch Topic
  • New Topic