Unix Technical Forum

Handling invalid database connections from connection pools

This is a discussion on Handling invalid database connections from connection pools within the DB2 forums, part of the Database Server Software category; --> I am currently developing a web app using WSAD 5.1 and DB2 V7.2.8. I understand there is a myriad ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 06:51 PM
Edward Singleton
 
Posts: n/a
Default Handling invalid database connections from connection pools

I am currently developing a web app using WSAD 5.1 and DB2 V7.2.8. I
understand there is a myriad of database errors related to obtaining
valid connections that are mapped directly to
com.ibm.websphere.ce.cm.StaleConnectionException. There are
apparently two solutions to ensure a valid connection is obtained from
a WebSphere dataSource. The first is to catch
StaleConnectionExceptions and attempt to execute the transaction again
a finite number of times. The second is to configure WebSphere to
test each connection as they are obtained. See link
http://publib.boulder.ibm.com/infoce...n &maxHits=50
for details.

I would like to catch com.ibm.websphere.ce.cm.StaleConnectionException
since it is not likely that our shop will ever move our applications
off WebSphere. Does anyone know what library should be included in
the Java build path? Is this the preferred method of handling invalid
connections? I cannot seem to find any useful documentation on this
subject for WSAD 5.1. Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:51 PM
Fan Ruo Xin
 
Posts: n/a
Default Re: Handling invalid database connections from connection pools

Maybe you can try WAS newsgroup.

"Edward Singleton" <singleton@mchsi.com> wrote in message
news:7e007c06.0407061151.245ca4c9@posting.google.c om...
> I am currently developing a web app using WSAD 5.1 and DB2 V7.2.8. I
> understand there is a myriad of database errors related to obtaining
> valid connections that are mapped directly to
> com.ibm.websphere.ce.cm.StaleConnectionException. There are
> apparently two solutions to ensure a valid connection is obtained from
> a WebSphere dataSource. The first is to catch
> StaleConnectionExceptions and attempt to execute the transaction again
> a finite number of times. The second is to configure WebSphere to
> test each connection as they are obtained. See link
>

http://publib.boulder.ibm.com/infoce...n &maxHits=50
> for details.
>
> I would like to catch com.ibm.websphere.ce.cm.StaleConnectionException
> since it is not likely that our shop will ever move our applications
> off WebSphere. Does anyone know what library should be included in
> the Java build path? Is this the preferred method of handling invalid
> connections? I cannot seem to find any useful documentation on this
> subject for WSAD 5.1. Thanks in advance.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 06:54 PM
Danijel Jozic
 
Posts: n/a
Default test

Test message


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 06:54 PM
kennyk
 
Posts: n/a
Default Re: Handling invalid database connections from connection pools

We're stuck in the same place. The WAS 3.5 to 4.0 documentation says to
use com.ibm.websphere.ce.cm.StaleConnectionException, but the 5.0
documentation is silent on the matter, and of course the WSAD
documentation is useless. This class isn't in the WAS 5.0 api
documentation.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 06:54 PM
kennyk
 
Posts: n/a
Default Re: Handling invalid database connections from connection pools

We're stuck in the same place. The WAS 3.5 to 4.0 documentation says to
use com.ibm.websphere.ce.cm.StaleConnectionException, but the 5.0
documentation is silent on the matter, and of course the WSAD
documentation is useless. This class isn't in the WAS 5.0 api
documentation.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com