|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
centralise constant values |
« View previous topic :: View next topic » |
Author |
Message
|
m.schneider |
Posted: Tue Feb 26, 2008 2:34 am Post subject: centralise constant values |
|
|
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 |
|
 |
AkankshA |
Posted: Tue Feb 26, 2008 3:11 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Feb 26, 2008 3:32 am Post subject: |
|
|
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 |
|
 |
m.schneider |
Posted: Tue Feb 26, 2008 4:50 am Post subject: |
|
|
Centurion
Joined: 10 Apr 2007 Posts: 132 Location: Germany
|
|
Back to top |
|
 |
mgk |
Posted: Tue Feb 26, 2008 6:41 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|