|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Plug In, CSD2 and attributes |
« View previous topic :: View next topic » |
Author |
Message
|
Deeko |
Posted: Thu May 09, 2002 6:05 am Post subject: |
|
|
 Acolyte
Joined: 16 May 2001 Posts: 72 Location: Edinburgh, UK
|
Hi,
I'm having real problems with my Java Plugin node after I installed CSD2.
I have attributes specified in the node (with "use defaults" ticked) and it's not allowing these to be seen by the Java setter/getters. I can override the values with fields in the incoming XML but can't get the defaults to get picked up. Thing is it all worked fine under CSD1. Can someone confirm the "Use Defaults" setting they're using under CSD2?
Thanks,
Derek. |
|
Back to top |
|
 |
Deeko |
Posted: Thu May 09, 2002 6:59 am Post subject: |
|
|
 Acolyte
Joined: 16 May 2001 Posts: 72 Location: Edinburgh, UK
|
Matters seem to have improved with "Use Defaults" unchecked....I haven't completely tested this though...
Regards,
Derek. |
|
Back to top |
|
 |
Deeko |
Posted: Thu Jun 13, 2002 2:19 am Post subject: |
|
|
 Acolyte
Joined: 16 May 2001 Posts: 72 Location: Edinburgh, UK
|
I'm still having problems with my plugin when it comes to attributes!
My node reads configurational info from incoming XML (if present) and uses these to override the attributes that are set on the actual node itself. This seems to work fine in all cases except for the first time a flow is used after a deployment. The node just will not pick up the attributes from the node on its initial attempt!
Anyone else had this? I'm going to raise a PMR very shortly....
Regards,
Derek. |
|
Back to top |
|
 |
Deeko |
Posted: Thu Jun 13, 2002 2:20 am Post subject: |
|
|
 Acolyte
Joined: 16 May 2001 Posts: 72 Location: Edinburgh, UK
|
Forgot to mention...all my setters/getters are created etc. |
|
Back to top |
|
 |
dnaren |
Posted: Fri Jun 14, 2002 1:34 pm Post subject: |
|
|
 Apprentice
Joined: 10 Aug 2001 Posts: 45 Location: Charlotte, NC
|
The get/set methods for the attributes are not called in the constructor of the plug-in node class. They are called after the plug-in node is initialized/loaded. But the set methods are called before 'evaluate()' method of the node class is called for the first time.
If you set the values for the attributes while constructiong the flow, they will be available in the evaluate() method when the first message arrives.
The set methods are also called automatically when you make changes to the flow and redeploy. (this behaviour is configurable). |
|
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
|
|
|
|