|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can an InputNode select which msg to read off its queue ? |
« View previous topic :: View next topic » |
Author |
Message
|
AlexeiSkate |
Posted: Wed Jul 10, 2002 12:19 pm Post subject: Can an InputNode select which msg to read off its queue ? |
|
|
Centurion
Joined: 10 Apr 2002 Posts: 123
|
Can an InputNode selectively decides which message to read from a Queue that it's listening to, or will it automatically try to read whatever is put onto the queue. For example, suppose you have InputNode A and InputNode B, both are attached to queue TESTQUEUE. Can you specify that A will only read msgs from TESTQUEUE if they have msgIds of '123', whereas B will only read msgs from TESTQUEUE if they have msgIds of '456' ? I don't believe it's possible to determine which msg will go to which input node, but a coworker thinks that it should be possible.
thanks,
Alex |
|
Back to top |
|
 |
lillo |
Posted: Wed Jul 10, 2002 1:41 pm Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
I don´t think this is possible at the moment to do the get from a field in the message, but if you need to do this you can have a routing message flow before each of the message flows. This message flow will do the routing you ask for.
I hope this help _________________ Lillo
IBM Certified Specialist - WebSphere MQ
Last edited by lillo on Wed Jul 10, 2002 1:50 pm; edited 1 time in total |
|
Back to top |
|
 |
kirani |
Posted: Wed Jul 10, 2002 1:48 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Alex,
Yes you can read messages from queue with a specific MsgId. You can configure your MQInput node to do this by specifying matching MsgId. To set this property, select properties of MQInput node and click on "Match Message ID". In the text box type your message id in format, X'01020102......'. MQMD.MsgID field is of binary data type and it is 24 bytes long. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
AlexeiSkate |
Posted: Thu Jul 25, 2002 4:41 pm Post subject: |
|
|
Centurion
Joined: 10 Apr 2002 Posts: 123
|
I have two separate Reply-Request msg flows that both uses the same triggered request queue and the same reply queue. I have an adapter that is triggered to read the request off the request queue and then put the reply message on the reply queue. In order for each msg flow to selectively read the reply queue messages, each has to know in bytecode specification what is the MsgId or CorrelId of the reply message, correct ? If the original XML request message's MsgId is generated by the broker, and the reply msg has to have its CorrelId set to the the msg id of the request msg, then there is no way for the msg flow to know in advance what that msgid might be. So in this scenario, will it be "impossible" to me to have the two msg flows selectively select which message to read off the queue ? |
|
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
|
|
|
|