|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
UDN: Configurable attributes not working |
« View previous topic :: View next topic » |
Author |
Message
|
zurg |
Posted: Mon Mar 04, 2013 7:56 am Post subject: UDN: Configurable attributes not working |
|
|
Novice
Joined: 04 Feb 2013 Posts: 10
|
Hello all,
I'm experimenting with creating a User Defined Node.
So far I was able to create it withing a Toolkit, add to palette and create the Application with simple flow and UDN.
I deployed it and tested. Everything seems to be working OK.
Problem occurs when I want to make one of the UDN properties configurable. I check it at Toolkit level and change value on the bar level.
During the flow design value is 'default'. On bar level I've changed it to 'noDefault'. After deploying it's set to 'default'. Any idea on what I'm missing?
WMB 8.0.0.1
WMBT 8.0.0.1
Flow ('default'):
Bar ('noDefault'):
java code:
Code: |
package com.ibm.jplugins;
import com.ibm.broker.plugin.MbException;
import com.ibm.broker.plugin.MbInputTerminal;
import com.ibm.broker.plugin.MbMessageAssembly;
import com.ibm.broker.plugin.MbNode;
import com.ibm.broker.plugin.MbNodeInterface;
public class ComErgoNode extends MbNode implements MbNodeInterface {
private String property1;
public void evaluate(MbMessageAssembly arg0, MbInputTerminal arg1)
throws MbException {
// TODO Auto-generated method stub
System.out.println("start of evaluate");
getSuperProperty();
setSuperProperty("mineValue");
System.out.println("end of evaluate");
}
public ComErgoNode() throws MbException
{
// create terminals here
System.out.println("start of constructor");
createInputTerminal ("in");
createOutputTerminal ("out");
System.out.println("end of constructor");
}
public static String getNodeName()
{
return "ComErgoNode";
}
public void setSuperProperty(String s){
System.out.println("setSuperProperty: " + s);
property1 = s;
}
public String getSuperProperty(){
System.out.println("getSuperProperty: " + property1);
return property1;
}
}
|
Output:
Code: |
2013-03-04 17:08:32.578 11 start of constructor
2013-03-04 17:08:32.578 11 end of constructor
2013-03-04 17:08:32.609 11 setSuperProperty: default
2013-03-04 17:08:32.625 11 getSuperProperty: default
2013-03-04 17:09:29.328 14 start of evaluate
2013-03-04 17:09:29.328 14 getSuperProperty: default
2013-03-04 17:09:29.328 14 setSuperProperty: mineValue
2013-03-04 17:09:29.328 14 end of evaluate
|
Last edited by zurg on Tue Mar 05, 2013 2:53 am; edited 1 time in total |
|
Back to top |
|
 |
Esa |
Posted: Tue Mar 05, 2013 12:56 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
Your terminology is not correct. What you are trying to configure is an attribute of a user-defined node, not a user-defined property.
Why it does not work as expected, I cannot say. Try undeploying and redeploying - maybe your broker is running an old version of the flow.
Run user trace.
Why are you developing an user defined node? Are you planning to publish a support pack? Writing user defined nodes is - in most cases - history. |
|
Back to top |
|
 |
zurg |
Posted: Tue Mar 05, 2013 1:58 am Post subject: |
|
|
Novice
Joined: 04 Feb 2013 Posts: 10
|
Esa,
thank you for response.
Addressing your questions:
1) Yes, I'm thinking about UDN (User Defined Node) attributes. Sorry for ambiguity.
2) I've tried already redeploying, creating new execution groups, deploying to different brokers (Windows- and Linux- based so far).
I'll try to run user trace.
Anyway it would be very useful if someone can confirm that in his environment it's working.
3) I plan to modify existing UDN but I wanted to start from the scratch to understand everything.
So far it's not working for my new node and for the node created previously. |
|
Back to top |
|
 |
zurg |
Posted: Fri Apr 19, 2013 5:38 am Post subject: Confirmed |
|
|
Novice
Joined: 04 Feb 2013 Posts: 10
|
Hey,
just to let you know -> it was an error in WMB 8.0.0.1.
Confirmed by IBM |
|
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
|
|
|
|