If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Reconnect to same connection id from .net client to DB2 after temp link failure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-08, 13:42
mov mov is offline
Registered User
 
Join Date: Apr 2008
Posts: 3
Reconnect to same connection id from .net client to DB2 after temp link failure

We are moving from a VB6 to a .Net based architecture for a 2-tier app that has a .Net client talking directly to DB400 on the AS400.
The existing VB6 application does not perform any transactional operations from the VB6 client and hence was not affected. There are multiple stored procedure data manipulation (insert/update) calls without any transactions in the existing VB6 application. These calls are wrapped in a transaction at the client in the new .NET application design. The transactions work well normally but there are issues in a scenario wherein the network was down during a transaction (possible since the CV60 will connect to the database using a wireless network) is under process. We tested such a scenario and found out that this leads to the connection between the .NET client and AS400 server (DB2) being broken but the server is unaware of this and will wait for a rollback or commit from the client until the connection on the server times out. The connection timeout for the database server is set to 2 hours (this is a global setting) and this cannot be changed as other devices connecting to the AS400 would also be affected by this setting. This would result in the rows modified (updated/insert/deleted) in a transactional scenario being locked for 2 hours.
Once the connection is broken, we can't seem to find a way to get the same connection back which means even our app cannot move forward until the timeout occurs after 2 hours.
We would like to know a) If DB400 or AS400 gives some way of reconnecting with the same info b) If there is a way to terminate the invalid connection immediately without touching the global timeout variable c) If something can be done at the client side to resolve the deadlock?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On