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 » property file and Shared row variable usage

Post new topic  Reply to topic
 property file and Shared row variable usage « View previous topic :: View next topic » 
Author Message
kathir
PostPosted: Fri Sep 23, 2011 1:05 am    Post subject: property file and Shared row variable usage Reply with quote

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
View user's profile Send private message
marko.pitkanen
PostPosted: Fri Sep 23, 2011 1:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Fri Sep 23, 2011 1:44 am    Post subject: Reply with quote

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
View user's profile Send private message
kathir
PostPosted: Fri Sep 23, 2011 1:57 am    Post subject: implementing memory cache using property file Reply with quote

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
View user's profile Send private message
kathir
PostPosted: Sun Sep 25, 2011 10:25 pm    Post subject: Please could you elaborate on this Reply with quote

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
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 » property file and Shared row variable usage
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.