Posted: Fri Sep 02, 2011 2:04 am Post subject: JCN Node UDP OnInitialize() method
Apprentice
Joined: 06 Jul 2011 Posts: 34
Hi,
Wondering if anyone can confirm the following.
We have a JCN which is in a subflow and uses user-defined properties (UDP) which are promoted to allow re-use of the subflow.. standard stuff. The user-defined properties are required in the constructor of the JCN therefore the onInitiaze() method is used to allow this.
We have a flow which has multiple instances (2) of this JCN subflow contained. It appears that the values for the UDP for each subflow are being initialized but only one set of values from one of the subflows is being used for all subflows at runtime which is causing the flow to fail as we need the JCN subflow in the message flow more than once but with different UDP values.
It appears even when we split the JCN subflows across 2 separate parent flows but are still in the same execution group the same issue occurs. The JVM perhaps?
Can someone confirm what is happening? It seems the onInitialize method is called once and only once for the JVM (exec group) and this means whichever version of the subflow is initialized first it is that subflows values that will be shared by all other versions of the subflow in the same execution group... That is UDP that share the same name...
Is that correct? Is there a way to prevent it bearing in mind we want to promote re-use of the JCN node through a subflow and the limitaitons of accessing the UDP in the constructor...
Posted: Fri Sep 02, 2011 4:47 am Post subject: Re: JCN Node UDP OnInitialize() method
Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
rglack10 wrote:
Can someone confirm what is happening?
log4j is a wonderful tool for you to use to confirm what is or is not being executed in your Java Compute Node. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
thanks for the responses. The trace was confirming what I was seeing I guess I wanted to know if there was a solution or a way round it but for the sake of a re-usable subflow there maybe isn't I guess...
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