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 » User Defined Property default values

Post new topic  Reply to topic
 User Defined Property default values « View previous topic :: View next topic » 
Author Message
PEPERO
PostPosted: Mon Oct 23, 2017 9:10 pm    Post subject: User Defined Property default values Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 24, 2017 4:27 am    Post subject: Re: User Defined Property default values Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
anil kumar
PostPosted: Wed Oct 25, 2017 4:31 am    Post subject: Reply with quote

Voyager

Joined: 22 Jan 2017
Posts: 97
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
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 » User Defined Property default values
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.