Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Open queue in browse and input mode simultaneously #8

Closed
abrahamb opened this Issue Nov 22, 2013 · 3 comments

Comments

Projects
None yet
2 participants

Is there any way to open a queue in both modes, browse and input? I need to browse all messages in the queue and process and delete one especific message, for example in java it's possible to do this:

int openOptions = MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_INPUT_SHARED | MQC.MQOO_BROWSE;
outputQueue=mQMgr.accessQueue(remoteQueue, openInputOptions);

Thanks for your reply

Owner

reidmorrison commented Nov 22, 2013

Yes, instead of supplying :mode when you open the queue, supply the open options you want use :options.

  :options => WMQ::MQOO_INPUT_SHARED | WMQ::MQOO_BROWSE | WMQ::MQOO_FAIL_IF_QUIESCING

NICE....... THANKS A LOT!!!

@abrahamb abrahamb closed this Nov 22, 2013

@abrahamb abrahamb reopened this Nov 22, 2013

it was :open_options

Regards

@abrahamb abrahamb closed this Nov 22, 2013

@reidmorrison reidmorrison added a commit that referenced this issue Nov 22, 2013

@reidmorrison reidmorrison Fixes #8 Fix error message with the correct name of the open option t…
…o supply and improve docs
119e9ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment