wood burning stoves 2.0*
The moose likes Web Services and the fly likes axis2: connection pool vs servicelifecycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2: connection pool vs servicelifecycle" Watch "axis2: connection pool vs servicelifecycle" New topic
Author

axis2: connection pool vs servicelifecycle

Jeff Boucher
Greenhorn

Joined: Aug 18, 2008
Posts: 14
I've read a few articles and tutorials now on extending the servicelifecycle in axis2 to establish a database connection at the time a service is launched, and using that connection for the lifetime of the service. In this case, the recommendation is to create the connection in the startUp method and the cleanup in the shutDown method.

It looks like a fine approach, but I'm not clear on why this would be preferable to using a connection pool instead (ie. it seems more beneficial to be able to draw on a pool of existing connections rather than establishing a single one at startup time).

Any thoughts?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: axis2: connection pool vs servicelifecycle
 
Similar Threads
Database connection in servlet
Connection Pool
Get servlet's object from jsp
axis2 ServiceLifeCycle is not up running
Using ServiceLifecycle for WebServices