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 » JCN Node UDP OnInitialize() method

Post new topic  Reply to topic
 JCN Node UDP OnInitialize() method « View previous topic :: View next topic » 
Author Message
rglack10
PostPosted: Fri Sep 02, 2011 2:04 am    Post subject: JCN Node UDP OnInitialize() method Reply with quote

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...

Thanks in advance..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 02, 2011 3:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

A Java user-defined message processing node is instantiated when a broker deploys a message flow that contains the user-defined message processing node. When the node is instantiated, the constructor of the message processing node class is called.

A JCN == a UDN.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Sep 02, 2011 4:47 am    Post subject: Re: JCN Node UDP OnInitialize() method Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Sep 02, 2011 4:49 am    Post subject: Re: JCN Node UDP OnInitialize() method Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
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.


And it will still show you that onInitialize is only called as described by the link I posted.
Back to top
View user's profile Send private message
rglack10
PostPosted: Sun Sep 04, 2011 11:00 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Jul 2011
Posts: 34

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...
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 » JCN Node UDP OnInitialize() method
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.