|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQGET sync-point |
« View previous topic :: View next topic » |
Author |
Message
|
techno |
Posted: Thu Jan 22, 2004 7:44 pm Post subject: MQGET sync-point |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Do we need to commit while MQGET in case the messages are retrieved under sync point (By default os/390, vse/esa, compaq)? Or can we set in the program so that the messages are retrieved out of sync-point?
transacted = false
session = connection.createQueueSession(transacted,
Session.AUTO_ACKNOWLEDGE);
Does above snippet holds good for retrieving messages out of sync-point?
Thanks |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Jan 23, 2004 6:42 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
"Do we need to commit while MQGET in case the messages are retrieved under sync point (By default os/390, vse/esa, compaq)?"
A) You sure have to. But i believe that on some platforms you dont have to, such as os/390(not 100% sure though). Because i belive the CICS transaction is committed when your app ends and your app runs within the CICS space. Also if you call mqdisc without doing a commit, there is an implicit commit, but only if the transaction is queue manager co-ordinated and not by a transaction manager.
"Or can we set in the program so that the messages are retrieved out of sync-point? "
A) You sure can.
As for the program snippet, it sounds about right.
Cheers
Kumar |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|