|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
'Global' Message per flow |
« View previous topic :: View next topic » |
Author |
Message
|
danferry |
Posted: Mon Jul 11, 2011 2:06 am Post subject: 'Global' Message per flow |
|
|
Novice
Joined: 11 Jul 2011 Posts: 12
|
Hi there
I'm getting into the WMB7 and started designing some simple flows.
Now I'm on a bigger flow and I'm having trouble about how to solve the fallowing problem.
I need to write an entity to a database. After writing this entity, I need the Id of it, which is not a problem. Now I need to access this Id on several nodes within the flow. One solution would be to pass the id to every node, which is not very comfortable as I need to pass messages to these nodes.
The other solution would be, make it kind of a 'global variable' but I have no Idea how to do this.
Could you please help me? I need the id for later inserts into the database.
Thanks a lot
Daniel |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Jul 11, 2011 2:22 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
how about
Code: |
SET Environment.Data.Id = <id returned from db>
|
The LocalEnvironment could also be used in a similar manner.
However (and before my esteemed colleagues suggest it), this concept is fully covered in the official broker training course. It is not rocket nozzle control theory but Broker Dev 101. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
danferry |
Posted: Mon Jul 11, 2011 2:29 am Post subject: |
|
|
Novice
Joined: 11 Jul 2011 Posts: 12
|
Thank you for your reply
I will try this. I will participate the broker training but I'm just evaluating some parts.
Thanks again
Daniel |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 11, 2011 4:24 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
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
|
|
|
|