|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQueue Read |
« View previous topic :: View next topic » |
Author |
Message
|
santosh.lokhande |
Posted: Wed May 02, 2007 8:09 am Post subject: MQueue Read |
|
|
Newbie
Joined: 03 Mar 2007 Posts: 6 Location: NA
|
Hi,
What openOptions do we set so that the messages when read
from the queue are readonly.
Thanks
Santosh _________________ Regards
Santosh |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 02, 2007 8:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Messages already written to a queue can not be changed without removing them, editing the data, and writing them back.
So they are always "read-only". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed May 02, 2007 8:40 am Post subject: |
|
|
Guest
|
Open options do not include a queue 'read-only' option.
The MQGET call allows programs to specify MQGMO_BROWSE which means read but do not destroy. The default MQGET call destroys the message after delivering it to the application (outside syncpoint) or at the MQCMIT (in syncpoint).
Refer to the MQV6 Application Programing Reference and MQ V6 Application Programmers Guide. |
|
Back to top |
|
 |
santosh.lokhande |
Posted: Thu May 03, 2007 1:20 am Post subject: openOptions |
|
|
Newbie
Joined: 03 Mar 2007 Posts: 6 Location: NA
|
thanks. Ive change the options and now the messages are not getting deleted. _________________ Regards
Santosh |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 03, 2007 1:42 am Post subject: Re: openOptions |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
santosh.lokhande wrote: |
thanks. Ive change the options and now the messages are not getting deleted. |
Just as an aside - there is very seldom a good requirement for browsing messages on a queue (i.e. reading them and leaving them), though a number of business people will insist that there are. Review the requirements carefully. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|