on 04-11-2007 12:20 AM
Guys,
My requirement: I have a variable that'll be read from message header with DynamicConfiguration and will be used in several UDFs in a message mapping.
Are there any problems in using either GlobalContainer object or Global Variable in Message Mapping Java Section for storing/recovering this variable?
And in the case I use Java Sections, suppose I have the following:
Global Variables
String param = null;
Initialization Section
param = "value";
Then, what do I need to use in Clean-up Section? Should I give it a null value or an empty string value? I mean, I can't understand the necessity of this section, since garbage collector would handle that variable (and supposing it will be valid only during this message mapping thread).
Any thoughts?
Thanks in advance,
Henrique.
Thank you for your inputs.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you are doing exactly right, using the Global Variables section. It is much easier than using the GlobalContainer class.
In most situations, there is really no need to code anything in the Clean-Up Section. It can be useful if you need to close db connections, files or some other persistent storage.
Regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.