|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to disable triggering in java code |
« View previous topic :: View next topic » |
Author |
Message
|
prasannaladdha |
Posted: Thu Mar 06, 2003 7:43 pm Post subject: How to disable triggering in java code |
|
|
Newbie
Joined: 06 Dec 2002 Posts: 9
|
Hi,
I had set trigger FIRST on my queue.
When I receive first message which my salesorder header, Trigger is fired.
After that I want to disable Trigger, because for the first message I need to send Reply message and wait for Sales Item detail message to come. After receiving that also I need to send reply message.
So, overall once I receive first message I want to disable triggering and move to Request-Response kind of working.
Is it a correct way to do this?
Pls help me on this ASAP.
Thanks,
Pras |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Mar 06, 2003 10:25 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Don't worry about disabling triggering. Once your appl is triggered, open the queue and get your message(s). (no more copies of application will be triggered).
I would strongly suggest that you use "Message Grouping". The 1st message in the group could be your header message.
If one of the MQ platforms involved does not support Message Grouping then you will need to make use of the Correlation ID field. Send the Header message and save the Message ID of the sent message. Then for each "Item Message" put the saved Message ID into the Correlation ID field of the MQMD. Now on the receiving application, get the header message and then get remaining messages (Item) by the Correl ID. (Use the Message ID of the header message). (Make sure to empty the queue of ALL header and item messages before exiting your program.)
later
Roger... _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
prasannaladdha |
Posted: Thu Mar 06, 2003 10:50 pm Post subject: MQSeries triggering |
|
|
Newbie
Joined: 06 Dec 2002 Posts: 9
|
Hi Roger,
Thanks for Inputs.
Can u pls look into following issues:
1. On sales header which is first message trigger occurs.
2. My application will read it.
3. My app. will send response for first message.
4. Now sales item will be put in queue in which header is already presnt.
5. My app. will read that also.
6. My app. send response for this message.
Now, If my app. has sent this header & Item data to SAP:
-If SAP is down
- I want my messages to be safe in queue.
Should I put all those messages in another queue and later on run some sheduler program which will read that queue and see if SAP is up.
-Problem is I can not keep those messages in queue, since trigger is set to FIRST.
Am I going right way?
Thanks,
Pras |
|
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
|
|
|
|