Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ConnectionPooling for standalone java app

 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to implement connection pooling for a stand alone java application. I picked up one of the simple connectionPool classes from the internet which checked-in and checked-out connections from the pool, and plugged it into my application but I have been asked to use something similar to a tomcat connection pool. I cant use a server for implementing connection pool, then how shall i do it?

Please help.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48976
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mk gpta" please read the important administrative private message I just sent you.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i took correct measures as per the naming policy. I'm sorry i missed that earlier.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48976
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please help me with the problem i posted?
 
Campbell Ritchie
Sheriff
Pie
Posts: 48976
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid I don't know about connection pooling.

Anybody else?
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses DBCP for a connection pool.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont want to use tomcat or any other server. My application is standalone and does not run using tomcat or anything. I have to implement connection pooling the way tomcat does it. Thats what I'm asking...how does tomcat do it?
I went through thr code but couldnt get much from it.
Please help.
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses DBCP for a connection pool. Have you tried reading the Java Doc for DBCP?
[ December 22, 2008: Message edited by: Joe Ess ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic