328 |
} |
} |
329 |
catch (Exception e) |
catch (Exception e) |
330 |
{ |
{ |
331 |
|
//Det vil være mest korrekt at Rollback/backout MQ Transaktionen her - for at være sikker på at Message'n fjernes fra køen |
332 |
|
try |
333 |
|
{ |
334 |
|
if (mqMgr != null) |
335 |
|
{ |
336 |
|
mqMgr.Backout(); |
337 |
|
} |
338 |
|
} |
339 |
|
catch (Exception e2) |
340 |
|
{ |
341 |
|
this.addLogEntry("Error backing out from MQ Transaction: " + e2.Message); |
342 |
|
} |
343 |
|
|
344 |
statusData.lastrunOk = false; |
statusData.lastrunOk = false; |
345 |
|
|
346 |
statusData.lastErrorMessage = name + ".transportMq2Sql error: " + e.GetType().FullName + " " + e.Message; |
statusData.lastErrorMessage = name + ".transportMq2Sql error: " + e.GetType().FullName + " " + e.Message; |