|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How To Read A Config File And Add To The Local Env |
« View previous topic :: View next topic » |
Author |
Message
|
intisam |
Posted: Wed Nov 26, 2008 4:47 am Post subject: How To Read A Config File And Add To The Local Env |
|
|
Novice
Joined: 18 Mar 2008 Posts: 21
|
Hi,
Since I am trying to build a generic flow,I am passing all the details (Configuration) thru a xml config file.
I am able to read the cfg file and fetch the fields one by one using JavaCompute node,but I am trying to read the whole cfg file and place the whole cfg tree into a new tree (Configuration)under "LocalEnvironment.XMLNSC." tree.
Can you please help me out,sample code will be great.
Regards,
Intisam |
|
Back to top |
|
 |
Mandeep |
Posted: Fri Nov 28, 2008 12:11 am Post subject: |
|
|
Apprentice
Joined: 03 May 2004 Posts: 33
|
You can use FileInput Node to read the contents of Config File, and use a compute node after that to put the contents to Local Environment and work with the original message which you must have saved in Environment tree earlier (i.e the message which triggered your flow - be it MQ or HTTP). |
|
Back to top |
|
 |
intisam |
Posted: Sun Nov 30, 2008 11:31 pm Post subject: |
|
|
Novice
Joined: 18 Mar 2008 Posts: 21
|
Thanks for your reply.But I can not use FileInput node to read the file,because I dont want to do anything (As mentionedin the "Action On Successfull Processing" parameter) the config file.
I am looking for java approach |
|
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
|
|
|
|