Author |
Message
|
wmqiadmin |
Posted: Tue Feb 27, 2007 9:25 pm Post subject: environment variables |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Hi All,
I have a requirement of setting environment variables so that they should stay there and we should be able to access those set values in multiple instance of another flow or multiple flows.
I tried the shared variable example from Routing message flow in sample gallery, but it didin't worked.
Can any buddy give me a good example how to do it or any link where i can find some sample for this.
Thanks
wmqiadmin |
|
Back to top |
|
 |
au@kosa |
Posted: Tue Feb 27, 2007 11:35 pm Post subject: |
|
|
 Centurion
Joined: 04 Jan 2007 Posts: 103 Location: pune
|
|
Back to top |
|
 |
wmqiadmin |
Posted: Wed Feb 28, 2007 2:32 am Post subject: |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Thanks au@kosa,
Can you please be more generic how can i do this through Message Set??
Thanks
wmqiadmin |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 28, 2007 3:11 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Message sets describe data.
They don't perform any actions.
You can not generically "share" data between different flows without using a persistent data store of some kind, that is accessible to all of those flows.
Like, perhaps, a database.
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wmqiadmin |
Posted: Wed Feb 28, 2007 5:17 am Post subject: |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
That is true jeff, but my company doesn't want to use database (my bad)
Also can we declare shared variables and share those across or in different instance of the message flow.
One more thought on this... can i initiate basic message flow which will set these environment values and then initiate another flow which actually execute the message massaging....
I tired this by using aggregation node as per the air ticket sample but could not test successufly... any thoughts on this.
thanks
wmqiadmin |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 28, 2007 5:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't share variables between different message flows.
You can share data by 1) putting it into the message (preferrably in the MQRFH2 header or a custom header), 2) putting it in a database!, 3) using the Broker Domain Cache nodes (support pack IA91), 4) putting it into a different message and retrieve it with the MQGet node, or 5) a few other fancier tricks for performing Stateful Processing with Message Broker.
I've listed those in order of utility.
Also, I don't know what you mean by
Quote: |
initiate another flow which actually execute the message massaging.... |
Flows are initiated by Input nodes, of various flavors. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wmqiadmin |
Posted: Wed Feb 28, 2007 5:47 am Post subject: |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Thanks Jeff, these are some new avenues to look into....
jefflowrey wrote: |
Also, I don't know what you mean by
Quote: |
initiate another flow which actually execute the message massaging.... |
Flows are initiated by Input nodes, of various flavors. |
I meant e.g. initiate a subflow or a flow using aggregation node and then initiate another flow...off course by using MQinput queue. |
|
Back to top |
|
 |
|