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 » Cross thread variable storage

Post new topic  Reply to topic
 Cross thread variable storage « View previous topic :: View next topic » 
Author Message
HarishKDewangan
PostPosted: Thu Feb 16, 2012 6:17 am    Post subject: Reply with quote

Novice

Joined: 23 Sep 2011
Posts: 13

Hi All,

I have some different requirement than mentioned in above thread,

Scenario :
I have two flows ( Flow1 & Flow2)
Flow1 has two MQInput nodes, one for REQUEST & one for RESPONSE (All with its default Transaction & Instances properties)

Flow2 has only one MQInput node.

Now the flow of the message is :
[A] Flow1-->MQInput(REQUEST)-->Node1-->Node2....-->Flow2
[B] Flow2-->MQInput-->Node1-->Reply to Flow1
[C] Flow1-->MQInput(RESPONSE)-->Node1-->Node2...(FinalOutput)

I have to store some data in the first flow [A] to retrieve in [C] flow using shared variable, as localenvironment & environment variables will not work here.

Now if I have multiple instances of the Flow1 then how am I going to handle the data stored in shared variable for overwrite stuff (shared variable in the first instance will be overwritten by second instance) .

Please suggest.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Feb 16, 2012 6:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Don't reopen old threads. Post your own new thread.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Feb 16, 2012 7:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Split from this thread which had already been reopened once.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Feb 16, 2012 7:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You have three options:

1. solidDB in-memory database.
2. Singleton.
3. SHARED.

My preferred options are in order of preference.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Feb 16, 2012 8:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can construct the shared data in any way you want, to ensure that it's not overwritten.

For example, you could create a shared ROW variable and then use the request id as the name of a field in the row, and then the rest of the data you need to share as children under that.

Then you just need to make sure that you properly delete the shared data row in [C].

pretend you're writing Perl and the shared variable is a hash.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 16, 2012 10:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

or
[A]Request -> fan out
[B]Service
[C]Response -> fan in

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Cross thread variable storage
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.