|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMQI 2.1 - Trigger?? |
« View previous topic :: View next topic » |
Author |
Message
|
JoePanjang |
Posted: Mon Aug 12, 2002 11:54 pm Post subject: WMQI 2.1 - Trigger?? |
|
|
Voyager
Joined: 10 Jul 2002 Posts: 88 Location: Dengkil MALAYSIA
|
Hi,
Normally on the mqseries we can specify trigger=YES to start the task or trans id to be invoked. Wonder whether on WMQI 2.1, MQInput node can work the same? Instead specify the queue name on the node, can the node been invoked similar to mqseries trigger=YES? I'm trying to avoid a hardcoded value on the node itself.
Thank you.
 |
|
Back to top |
|
 |
kirani |
Posted: Tue Aug 13, 2002 8:40 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
MQInput node does not support "triggering like" feature. However, you could design your application to trigger a particular message flow by putting a message in the input queue. This will be a 2 stage processing. Alternatively, you could send a control message to the broker to start a particular message flow.
If this does not work, you could write a plug-in input node to implement this. _________________ 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 |
|
 |
sgopal |
Posted: Tue Aug 13, 2002 8:53 am Post subject: |
|
|
Acolyte
Joined: 30 Jul 2002 Posts: 63
|
Can you please explain this in detail:
Quote: |
Alternatively, you could send a control message to the broker to start a particular message flow. |
What should be the format of control message to be sent to broker?
For your first solution, if i understand correctly,
1. Dummy message to start a message flow
2. Message flow should use MQGet node to retrieve the actual message from different queue.
Please clarify.
Thanks in advance. |
|
Back to top |
|
 |
kirani |
Posted: Tue Aug 13, 2002 11:55 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Gopal,
Yes, you understood my first solution correctly.
kirani wrote: |
Alternatively, you could send a control message to the broker to start a particular message flow.
|
When you issue a start message flow command using Control Center's Operation Pannel, Configuration Manager sends a control/admin message to Broker on SYSTEM.BROKER.ADMIN.QUEUE queue. The format of this XML message is as follows ..
Code: |
<Broker uuid="56f1aa91-ec00-0000-0080-97a043b82aa8" label="XXXXBK" version="1">
<ExecutionGroup uuid="b171ab91-ec00-0000-0080-97a043b82aa8">
<Start>
<MessageFlow uuid="8482fbf7-ec00-0000-0080-b07e5a7bc7df"/>
</Start>
</ExecutionGroup>
</Broker>
|
Following fields in the MQMD header needs to be set:
Message Type is MQMT_REQUEST
ReplyToQ, ReplytoQmgr
Report is MQRO_COPY_MSG_ID_TO_CORREL_ID
CCSID is 1208
In order to issue this command, you need to know the uuid of Broker, Execution Group and Message Flow.
Please note:
If you are thinking of developing a solution based on this format, you need to consider these two points:
1. This message format is not published by IBM.
2. This Message format might change in future releases of WMQI. _________________ 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 |
|
 |
sgopal |
Posted: Tue Aug 13, 2002 12:16 pm Post subject: |
|
|
Acolyte
Joined: 30 Jul 2002 Posts: 63
|
Thanx for your reply Kiran,
Issuing start message flow command using control center, configuration manager sends
control/admin message to broker. But once the message flow is started, it will get messages from the queue and processes it. Once all the messages are processed, message flow will wait for further message on the queue.
If i understood your solution correctly, then in order to start the message flow again after next trigger message. I need to stop the message flow after
first trigger message processing.
So the best option would be to develop plug-in input node for triggering. |
|
Back to top |
|
 |
kirani |
Posted: Tue Aug 13, 2002 12:25 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Yes, you would need another message to stop the message flow once the flow finished processing all input messages. Writing a plug-in input node is also a good solution. Finally, I guess, the solution depends on client requirement! _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|