aspose file tools*
The moose likes Websphere and the fly likes Orphan Timeout & Idle Timeout in WebSphere 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Orphan Timeout & Idle Timeout in WebSphere 4.0" Watch "Orphan Timeout & Idle Timeout in WebSphere 4.0" New topic
Author

Orphan Timeout & Idle Timeout in WebSphere 4.0

Carol Chen
Greenhorn

Joined: Jun 10, 2001
Posts: 19
Hi Everybody,
I am a little confused about the Orphan timeout & Idle timeout of Data source connection pool used for Servlet. What will WebSphere do after the number of seconds of Orphan timeout? WebSphere will close the connection or return to the connection pool?
What is happening to the Idle timeout?
Thanks,
Carol Chen
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Originally posted by Carol Chen:
Hi Everybody,
I am a little confused about the Orphan timeout & Idle timeout of Data source connection pool used for Servlet. What will WebSphere do after the number of seconds of Orphan timeout? WebSphere will close the connection or return to the connection pool?
What is happening to the Idle timeout?
Thanks,
Carol Chen

If a connection is held outside the pool but not used longer than the "Orphan" timeout it is then returned to the pool. If a connection remains unused in the pool longer than the idle timeout, and if the pool is greater than the minimum pool size, the connection is removed from the pool and destroyed.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Carol Chen
Greenhorn

Joined: Jun 10, 2001
Posts: 19
Thanks Kyle:
I read an article about WAS v3.5 for AS/400, and it says:
"Orphan timeout
Type the number of seconds that a connection holder is able to hold a connection without using it. If a connection holder does not use the connection that it has for this number of seconds, WebSphere Application Server closes the connection. "
My question: Is the "WAS returns the connection to the pool" the same as " WAS close the connection" ?
Thanks
Carol Chen
sandhya menon
Ranch Hand

Joined: May 22, 2001
Posts: 37
with my little experience I feel this way :
Orphan time out make sure idle connection held by ur application is returned to pool even if close() is supposed to do the same.
Idle time out returns back idle connection to your DataBase .
Pls comment
Regards
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Carol,
Sending close() to a Connection returned from a DataSource (a pooled connection) doesn't destroy it -- it just returns it to the pool. When the orphan timeout expires (which means that the program did NOT send close() to it) then the framework sends close() to the connection, thus returning it to the pool.
Kyle
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Orphan Timeout & Idle Timeout in WebSphere 4.0