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 » GLOBLE VARIABLES

Post new topic  Reply to topic
 GLOBLE VARIABLES « View previous topic :: View next topic » 
Author Message
pan_khandar
PostPosted: Tue Jul 09, 2002 10:56 am    Post subject: GLOBLE VARIABLES Reply with quote

Novice

Joined: 21 Jun 2002
Posts: 17

Hi,

Is there any way to define and set Globle variable like Environment.Variables etc in 2.0.2?


Thanks

Pankaj
-=------------------------------------
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kirani
PostPosted: Tue Jul 09, 2002 2:13 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Pankaj,

Depending on your requirement you could use any of these options to store global variables:
1. Use WKSPACE parser (SupportPac IA0E) to pass data across nodes within single message processing scope.
2. Use PostIt plug-in (SupportPac IA0H) to share data across message flows.
3. Use DxPool plug-in (SupportPac Ia79).
4. Use persistent storage (database, files or queue) to store global variables.
5. Use simple ESQL like SET OutputDestinationList.Variables.Myvar = 'somevalue';
to store local variables into DestinationList. This is similar to WKSPACE parser.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
AlexeiSkate
PostPosted: Thu Jul 25, 2002 5:23 pm    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

kirani wrote:
Pankaj,

5. Use simple ESQL like SET OutputDestinationList.Variables.Myvar = 'somevalue';
to store local variables into DestinationList. This is similar to WKSPACE parser.


Kirani,

Does Myvar in the above SET statement exists only for one input msg and then get reset for the next msg, or can it exist like a global variable in standard programming where every single input msg can update the MyVar ?
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Jul 25, 2002 6:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Alex,

The scope of Myvar here is for one message only. It will get reset for next messages.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
AlexeiSkate
PostPosted: Wed Jul 31, 2002 12:48 pm    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

If I have a group of messages on a queue and as each msg passes through the message flows, I need to assign it an incremental sequential number. Is the only way to do this is by storing an initial number in the local db2 dabase table? Then as each msg passes through the msg flows, read the number, increment it by one, assign it to the message, and then update the db table with the new incremented number.


-thanks,
Alex
Back to top
View user's profile Send private message
sgopal
PostPosted: Wed Jul 31, 2002 1:22 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

Scope of Local environment is limited only to the current message. The safest option is to store the value in the database and then fetch, increment and update it. But be careful with transaction coordination if you are doing so. (synchronizing the message rollback and database counter value)

thanks -- Gopal
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 » GLOBLE VARIABLES
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.