Posted: Mon Oct 21, 2013 7:49 am Post subject: User Defined Property within a User Define Node (in Java)
Partisan
Joined: 02 Oct 2012 Posts: 313
Hi all,
WMB 8.0.0.1
I'm developing a User Defined Node using Java. In the "Properties" of the .msgnode I have the property "Queue" within my property group "Configuration". I'm able to deploy a flow that uses the user defined node, but when attempt to add a value to that property the following error prompts:
Code:
BIP2210E: Invalid configuration message: attribute name 'Queue' not valid for target object 'SearchFilter.'.
The message broker received a configuration message containing the attribute name 'Queue' which is not valid for the target object 'SearchFilter.'. This can be caused by a mismatch in levels between the Message Broker Toolkit and the broker, or as a result of a user or third party written user-defined node where the implementation library installed at the broker does not match the node definition held at the Message Broker Toolkit.
Ensure that the levels of code installed at the Message Broker Toolkit and broker are consistent. If they are, identify the supplier of the target object and report the problem to them. If this is IBM, contact your IBM support center.
Here I'm not very sure if I have to do a workaround in the Java implementation file. The Infocenter says that you should declare the attributes through the methods in this way:
Code:
private String attributeVariable;
public String get<AttName>()
{
return attributeVariable;
}
public void set<AttName>(String value)
{
attributeVariable = value;
}
I've tried this but didn't work (updated the library).
I solved the issue; the Infocenter gave the solution.
Quote:
The attributes are defined by supplying the get/set methods using the standard JavaBean property naming convention. The setXxx method is invoked by the message broker when a configuration request is received that attempts to set the value of the node attribute with matching name xxx.
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