240 |
|
|
241 |
private void transportMq2Sql() |
private void transportMq2Sql() |
242 |
{ |
{ |
243 |
|
int messageCount = 0; |
244 |
|
|
245 |
MQQueueManager mqMgr = null; |
MQQueueManager mqMgr = null; |
246 |
MQQueue in_queue = null; |
MQQueue in_queue = null; |
247 |
string filename = getLogFilename(LogfileType.LogTransactions); |
string filename = getLogFilename(LogfileType.LogTransactions); |
308 |
translog.WriteLine(getNowString() + " " + msgString); |
translog.WriteLine(getNowString() + " " + msgString); |
309 |
mqMgr.Commit(); |
mqMgr.Commit(); |
310 |
statusData.counter++; |
statusData.counter++; |
311 |
|
|
312 |
|
|
313 |
|
messageCount++;// increment per run message counter |
314 |
|
if (messageCount >= 10000) // if we have moved 10000 messages in this run - let it go and give the other transports a change |
315 |
|
{ |
316 |
|
isContinue = false; |
317 |
|
} |
318 |
|
|
319 |
|
|
320 |
|
|
321 |
} |
} |
322 |
else |
else |
323 |
{ |
{ |