Author |
Message
|
smerjfo |
Posted: Mon Jun 27, 2022 6:46 am Post subject: How can i read messages from 2 different queues in 1 flow? |
|
|
Newbie
Joined: 23 Jun 2022 Posts: 4
|
Greetings
My problem description:
I want in first flow put MessageID in queue TEMP and XMLNSC content in queue
BACK. In second flow i wanna concatenate messages from queues in one message (MessageID is transformed into CorrelID). How can i do that? MQ Get Node or something else?  |
|
Back to top |
|
 |
timber |
Posted: Mon Jun 27, 2022 7:32 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
MQGet node would be a good option. Give it a try, and if you hit problems then check the docs or reach out to us here. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jun 27, 2022 5:30 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
What is your design requirement? There might be a better way of achieving it. _________________ Glenn |
|
Back to top |
|
 |
smerjfo |
Posted: Tue Jun 28, 2022 12:33 am Post subject: |
|
|
Newbie
Joined: 23 Jun 2022 Posts: 4
|
[img]https://pastenow.ru/HEBW3[/img]
My design requirement:
In first flow take a soap message (SOAP Input Node) then complete data mapping(put MSG ID in one queue,soap body wrap in XMLNSC in another)
In second flow read message from queue with soap body and attach msg id to correlId in current message.Then put it in SOAP Reply.
It's just test task on the theme of WebService.
If you have better solution I would welcome suggestions.  |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 28, 2022 4:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Bad design
Better would be:
flow 1 Soap Input -> MQ PUT -> MQ-GET ->Soap Reply
flow 2 MQ-Input -> Compute -> MQ Reply
Hope it helps  _________________ MQ & Broker admin |
|
Back to top |
|
 |
smerjfo |
Posted: Tue Jun 28, 2022 5:11 am Post subject: |
|
|
Newbie
Joined: 23 Jun 2022 Posts: 4
|
fjb_saper
Okay, but how can i save info from LocalEnvironment for soap reply node? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 28, 2022 9:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
smerjfo wrote: |
fjb_saper
Okay, but how can i save info from LocalEnvironment for soap reply node? |
you usually don't do this across flows. You keep the reply in the same flow as the request.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jun 28, 2022 4:42 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
smerjfo wrote: |
...
In second flow read message from queue with soap body and attach msg id to correlId in current message. Then put it in SOAP Reply....
|
You don't need a second MQ message to carry a msg id. The soap MQ message can carry separate msgid and correlid values in the MQMD, that you can set to whatever you like when the msg is put, and use for whatever purpose you like. _________________ Glenn |
|
Back to top |
|
 |
|