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 » centralise constant values

Post new topic  Reply to topic
 centralise constant values « View previous topic :: View next topic » 
Author Message
m.schneider
PostPosted: Tue Feb 26, 2008 2:34 am    Post subject: centralise constant values Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

Is there a way to centralise constant values? I have a bunch of constants that I need in more than one flow and it does not make sense to store them in a database.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Feb 26, 2008 3:11 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

store all the constants in env tree and access them whenever reqd...

BUT this way u ll be building env tree for every message....

...

read about cache memory (database table ll be used though)...

or shared variables..

Happy Reading
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Tue Feb 26, 2008 3:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes, you can declare variables that hold constant values in the Schema scope, and address them by name from any ESQL file that can reference the schema.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
m.schneider
PostPosted: Tue Feb 26, 2008 4:50 am    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

Thanks for the reply. Obviously what I was trying to do does not work. I've beent trying to reference a file with constants in my util schema, ...

Just found this:

Constants are locally reusable and can be used where they are defined in any ESQL or mapping file within the same broker schema.

Constants are not globally reusable; you cannot use a constant that is declared in another schema.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.msgbroker.helphome.doc/help_home_msgbroker.htm
Back to top
View user's profile Send private message
mgk
PostPosted: Tue Feb 26, 2008 6:41 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

This is true, but Schema Level FUNCTIONs can be used (called) from another Schema. Therefore, you can define you constants in one Schema, with an accessor "getter" function for each, and simple use the function to get the value from another Schema if you wish...


Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » centralise constant values
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.