Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

StaleConnectionException:  RSS feed

kiran krishna
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!