Author |
Message
|
kt76 |
Posted: Mon Jan 26, 2004 8:18 pm Post subject: Reading a properties file |
|
|
Acolyte
Joined: 18 Jan 2004 Posts: 52
|
Is it possible to have the compute node read from a properties file.
Our requirement is to read some constants and form the XML message. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 26, 2004 11:15 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
No, you cannot do that with a Compute node. You will have to write a custom plug-in node to do that. _________________ 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 |
|
 |
lillo |
Posted: Tue Jan 27, 2004 12:13 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
We had that requirement in our environment and we developed a plugin node.
In our plugin node to avoid read the file every time we check whether the property is already read or not. If it is not, we read the property file and put the property in the dataflow "environment".
After you have read the property file, only if it is necessary, to must put your property file in any tree (localenvironment, environment, ...).
I hope this help you. Tell me if you need anything else. _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
Missam |
Posted: Tue Jan 27, 2004 10:26 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Instead of writing a plug in node to read constants from a file.why don't we create a table under brokers database and put the values in it and query the table in the flow to get the reuired properties information. |
|
Back to top |
|
 |
lillo |
Posted: Wed Jan 28, 2004 12:42 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
IamSam wrote: |
Instead of writing a plug in node to read constants from a file.why don't we create a table under brokers database and put the values in it and query the table in the flow to get the reuired properties information. |
In case of adding this information into a database I would not use the broker database. It is a broker database, not a user database. What would happen if you need to add a second broker into that environment? Would you create the same table into this broker database? _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
Missam |
Posted: Wed Jan 28, 2004 11:40 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Whether we put the information in broker database or user database ,the idea is to eliminate writing plug in node.if we are having more than one broker in our environment,better write a script file and run it when ever you need.I Hope This doesn't effect the performance of your broker. |
|
Back to top |
|
 |
kt76 |
Posted: Wed Jan 28, 2004 9:16 pm Post subject: |
|
|
Acolyte
Joined: 18 Jan 2004 Posts: 52
|
Is it possible to send the sample plug-in code.
Also is there any performance issues/pros-cons of using plug-in over reading data from database |
|
Back to top |
|
 |
|