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 » 'Global' Message per flow

Post new topic  Reply to topic
 'Global' Message per flow « View previous topic :: View next topic » 
Author Message
danferry
PostPosted: Mon Jul 11, 2011 2:06 am    Post subject: 'Global' Message per flow Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 11, 2011 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
danferry
PostPosted: Mon Jul 11, 2011 2:29 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 11, 2011 4:24 am    Post subject: Reply with quote

Jedi Knight

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

Hi Dan, welcome to WMB development. You may notice that WMB operation is not simple, and not complex either. What would be the point of evaluating something if you have not the skill or training to do so? You may like to attend this course so you can properly evaluate the product:

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/au/en?pageType=course_description&includeNotScheduled=y&courseCode=WM663AU
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » 'Global' Message per 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.