File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes StaleConnectionException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "StaleConnectionException: " Watch "StaleConnectionException: " New topic


kiran krishna

Joined: Oct 07, 2002
Posts: 6
I have an application where recaords are saved to the database using Threads. Maximum eight threads could be created to interact and store large number of records in Eight differnt independent tables.
We are using Db2 database and using NamedPipes protocal to connect to the database.
when the thread starts, first time it tries to access the database it throws
exception. I studied notes on Ibm sites about this exception about no work over is provided.
Due to this exception no data loss is occuring. But in the second or third attempt it gets the connection and the dtabase operation is completed. This exception on an average comes for first four attempts.
Interestingly when i try to access the same functioanlity in the second time in the same session it does not come.
Can anyone suggest a soluiton how to avoid the exception

thanks in advance
subject: StaleConnectionException:
jQuery in Action, 3rd edition