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 » Reading a properties file

Post new topic  Reply to topic
 Reading a properties file « View previous topic :: View next topic » 
Author Message
kt76
PostPosted: Mon Jan 26, 2004 8:18 pm    Post subject: Reading a properties file Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Mon Jan 26, 2004 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
lillo
PostPosted: Tue Jan 27, 2004 12:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Missam
PostPosted: Tue Jan 27, 2004 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
lillo
PostPosted: Wed Jan 28, 2004 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Missam
PostPosted: Wed Jan 28, 2004 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
kt76
PostPosted: Wed Jan 28, 2004 9:16 pm    Post subject: Reply with quote

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
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 » Reading a properties file
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.