|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
User Defined Property default values |
« View previous topic :: View next topic » |
Author |
Message
|
PEPERO |
Posted: Mon Oct 23, 2017 9:10 pm Post subject: User Defined Property default values |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Hi all;
Suppose there are two message flows (A & B ) as one makeing a request to a server and the other reading the response back asynchronously.
There are 2 or more user defined properties defined in each of the flows with a default value.
The properties in each A & B are read on the onInitialize() method of their separate java compute node class and is put in their class static member variables.
When redeploying message flow B , the default values for the user define properties of message flow A are lost. If don't want to deploy A & B in separate execution groups , what do i have to do? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 24, 2017 4:27 am Post subject: Re: User Defined Property default values |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
PEPERO wrote: |
Hi all;
Suppose there are two message flows (A & B ) as one makeing a request to a server and the other reading the response back asynchronously.
There are 2 or more user defined properties defined in each of the flows with a default value.
The properties in each A & B are read on the onInitialize() method of their separate java compute node class and is put in their class static member variables.
When redeploying message flow B , the default values for the user define properties of message flow A are lost. If don't want to deploy A & B in separate execution groups , what do i have to do? |
You do not say but it looks to me as both A and B are using the same java class.
In order for each flow to have different variables you need to use either the memory mgmt (Extreme Scale) or a different class.
When you redeploy either of the flows into the integration server you reinitialize the Java Class, be it static or not. This is an integration server scope. So at that point you reinitialize all variables for the class, static or not... Any java class associated with the deployment will undergo the same fate. If you need the variables to survive a class reload, you should serialize them in extreme scale. As long as the structure does not change you can retrieve the object from extreme scale and keep the values that were stored there.
Hope it helps  _________________ MQ & Broker admin |
|
Back to top |
|
 |
anil kumar |
Posted: Wed Oct 25, 2017 4:31 am Post subject: |
|
|
 Voyager
Joined: 22 Jan 2017 Posts: 98 Location: India
|
Just Curious and wanted to know if Java Isolation property could help this kind of scenario can any one advise? |
|
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
|
|
|
|