powered by Jive Software

Configure existing node in pubusb

i have created a node over a server now after few dayz i got a requirement to change the configuration of existing node.

but what i see in smack is there is and option to create node with default configurationg and create node with user defined configuration but no

option to configure existing node without deleting it.

all i can see as of now is to delete the node and re create it and configure it , so can any one tell me how to configure existing node in smack

Off the top of my head I believe it is:

ConfigureForm existingConfig = node.getNodeConfiguration();

ConfigureForm newConfig = new ConfigureForm(existingConfig.createAnswerForm());

newConfig.setXXX();

node.sendConfigurationForm();