aspose file tools*
The moose likes JDBC and the fly likes ConnectionPooling for standalone java app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ConnectionPooling for standalone java app" Watch "ConnectionPooling for standalone java app" New topic
Author

ConnectionPooling for standalone java app

mayank gupta
Ranch Hand

Joined: Dec 21, 2008
Posts: 78
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

Joined: Oct 13, 2005
Posts: 39436
    
  28
"mk gpta" please read the important administrative private message I just sent you.
mayank gupta
Ranch Hand

Joined: Dec 21, 2008
Posts: 78
Hello, i took correct measures as per the naming policy. I'm sorry i missed that earlier.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Thank you.
mayank gupta
Ranch Hand

Joined: Dec 21, 2008
Posts: 78
Could you please help me with the problem i posted?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
I'm afraid I don't know about connection pooling.

Anybody else?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Tomcat uses DBCP for a connection pool.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
mayank gupta
Ranch Hand

Joined: Dec 21, 2008
Posts: 78
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

Tomcat uses DBCP for a connection pool. Have you tried reading the Java Doc for DBCP?
[ December 22, 2008: Message edited by: Joe Ess ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ConnectionPooling for standalone java app