ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How can i read messages from 2 different queues in 1 flow?

Post new topic  Reply to topic
 How can i read messages from 2 different queues in 1 flow? « View previous topic :: View next topic » 
Author Message
smerjfo
PostPosted: Mon Jun 27, 2022 6:46 am    Post subject: How can i read messages from 2 different queues in 1 flow? Reply with quote

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
View user's profile Send private message
timber
PostPosted: Mon Jun 27, 2022 7:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Jun 27, 2022 5:30 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

What is your design requirement? There might be a better way of achieving it.
_________________
Glenn
Back to top
View user's profile Send private message
smerjfo
PostPosted: Tue Jun 28, 2022 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 28, 2022 4:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
smerjfo
PostPosted: Tue Jun 28, 2022 5:11 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 28, 2022 9:24 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Tue Jun 28, 2022 4:42 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How can i read messages from 2 different queues in 1 flow?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.