Author |
Message
|
venusboy |
Posted: Thu Jul 20, 2006 11:24 am Post subject: WMBv6 MQGET Node Browse the message |
|
|
Acolyte
Joined: 11 Jun 2002 Posts: 51
|
Hi,
I need to browse a message on a queue. Does the MQGET node support a non-destructive get?
I can specify the MQGMO option for example to 'MQGMO_BROWSE_FIRST', but how do I actually open the queue with a MQOO_BROWSE option?
This must be really obvious, but can someone point me in the direction.
Regards,
Tom, |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 20, 2006 11:36 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
No, MQGET does not currently support BROWSE. _________________ -wayne |
|
Back to top |
|
 |
venusboy |
Posted: Thu Jul 20, 2006 11:39 am Post subject: |
|
|
Acolyte
Joined: 11 Jun 2002 Posts: 51
|
Oh, that's kinda odd. Did the old MQGet support pack support a browse operation?
So my other option is to write a custom node to perform this action. Is this recommended? Is there another option?
Thanks
Tom. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 20, 2006 12:04 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
It would be an easy java compute node.
Hint...you can get the qmgr name via:
Code: |
MbNode.getBroker()
MbBroker.getQueueManagerName()
|
_________________ -wayne |
|
Back to top |
|
 |
venusboy |
Posted: Thu Jul 20, 2006 3:44 pm Post subject: |
|
|
Acolyte
Joined: 11 Jun 2002 Posts: 51
|
wschutz - as usually you come up with the goods and thanks for the fast reply.
I know it would be easy to implement (may be too easy), but my main worry is if IBM would support creating a new WMQ JMS transaction within the broker (what if I need XA - can I use the JMS-XA API) - I only state this as they (IBM) would never fully support the previous MQGet node (even though major clients need this to be fully supported) and at one point they nearly moved it down a support level.
I do remember in v5 there were quite a few -do not do-- warning against custom written nodes, but now custom nodes seems to be a bit of a 'whatever' situation - e.g, they make reference to the Java Mail API. I only state this as ifor example in WAS they IBM (I suppose cos it was against the J2EE spec) would never support reading Files from within Server. Is there any such do not do within WMBv6?
I suppose in my situation this is just an inquiry request on a read-only message so I cannot perform any damage on the system.
Thanks again.
Regards,
Tom. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 20, 2006 8:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well I don't know but first I would question the design that needs me to browse a message on the get node. What are you trying to accomplish and can that be done by any other means?
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|