|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
property file and Shared row variable usage |
« View previous topic :: View next topic » |
Author |
Message
|
kathir |
Posted: Fri Sep 23, 2011 1:05 am Post subject: property file and Shared row variable usage |
|
|
Apprentice
Joined: 12 Sep 2011 Posts: 30
|
Please can some one guide me on how to create a property file and read from property file and load into memeory cache in mb7.0 |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Sep 23, 2011 1:39 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
I think that the easiest way is use ESQL and XML -document to contain your properties.
1. Declare SHARED ROW variable, or better in this time called cached data tree, at schema level.
2. When flow starts check that variable contains properties
3. If not, populate variable with parse command from xml document read from what ever source( file, mq, db, ws) you choose.
4. Use properties when ever you need them from variable just like you can use Environment or other data trees.
--
marko |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 23, 2011 1:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Use User Defined Properties on the BAR file rather than a separate properties file. |
|
Back to top |
|
 |
kathir |
Posted: Fri Sep 23, 2011 1:57 am Post subject: implementing memory cache using property file |
|
|
Apprentice
Joined: 12 Sep 2011 Posts: 30
|
HI,
You mean to say I have a flow like
MQInput Node --> compute node
My MQINput will contain XML data.
So in my ESQL I need to write
BROKER SCHEMA com....
declare Cachedata SHARED ROW
And in my module
if Cachedata IS FALSE then
set INputRoot=OutputRoot |
|
Back to top |
|
 |
kathir |
Posted: Sun Sep 25, 2011 10:25 pm Post subject: Please could you elaborate on this |
|
|
Apprentice
Joined: 12 Sep 2011 Posts: 30
|
Posted: Fri Sep 23, 2011 1:39 am Post subject:
Hi,
I think that the easiest way is use ESQL and XML -document to contain your properties.
1. Declare SHARED ROW variable, or better in this time called cached data tree, at schema level.
Are you asking to declare the shared row variable as
BROKER SCHEMA com.schema.abc
declare Cachedata SHARED ROW;
2. When flow starts check that variable contains properties .
DO I need to use UDP to do this?
3. If not, populate variable with parse command from xml document read from what ever source( file, mq, db, ws) you choose.
Parse in the sense ?
4. Use properties when ever you need them from variable just like you can use Environment or other data trees?
HOw?
Please could you guide me on this. |
|
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
|
|
|
|