This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

connection pooling  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have lots of questions regarding connnection pooling, Is it different for each server? If yes then statement "code once run any where" become false. Is there any way to write a connection pooling code that runs one every server. Do JDBC 2.0 API supports connection pooling.
regards
Qureshi,
SCJP.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there are ways to write a connection pooling code that runs one every server.
And of course JDBC 2.0 supports connection pooling.
But also every vendor can provide its server/DB with a connection pooling class improved to fully use the posibilities of their own ad-hoc DBC components, or their proper connection and driver classes, etc....
But anyway you can always code you own CP class.
check this useful links:
coreServerls-Chapter 18: http://csajsp-chapters.corewebprogramming.com/CSAJSP-Chapter18.pdf
Sun. JDBC online training: http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html
HTH
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure if jdbc 2.0 supports connection pooling ( i don't think so):
<extracted from sun web site>

Other major changes in the new version of the JDBC specification (3.0) include: Connection Pool configuration enhancements, Statement pooling for Pooled Connections, and a description of the migration path from the JDBC SPI (Service Provider Interface) to the Connector Architecture.

</extracted from sun web site>
http://java.sun.com/products/jdbc/
I am using connection pooling in my web application. I'm using dbconnectionbroker (you can find it in www.javaexchange.com). So, I did not have to reinvent the wheel.
hope it helps.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
As they are in java will run any where. However why would someone want to sell their code for free .
So each comany comes with connections pools that are closely integrated with their products.
Yes it is possible to do the thing which you want you just have to know a lot of drivers and their intricies to make your stuff work !
however you can abstract it to the 2.0 API !
Regards
Remesh
rgnmen

Originally posted by Muhammad Qureshi:
Hello All,
I have lots of questions regarding connnection pooling, Is it different for each server? If yes then statement "code once run any where" become false. Is there any way to write a connection pooling code that runs one every server. Do JDBC 2.0 API supports connection pooling.
regards
Qureshi,
SCJP.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!