powered by Jive Software

Openfire is not sending configuration change event notification to the subscribers

Hi,

I am trying to test pubsub configurationNotification part of openfire using smackx library. Code snippet for same is as follows:

//Node Creation

ConfigureForm form =

form.setPersistentItems(persistItems);

form.setDeliverPayloads(deliverPayload);

form.setAccessModel(AccessModel.

new ConfigureForm(FormType.submit);

form.setNotifyConfig(

open);

true);

LeafNode leafNode = (LeafNode)pubsubManager.createNode(“configChangeNode”, form);

// Setup event receiver

BlockingQueue queue = new ArrayBlockingQueue(3);

PubSubManager subMgr =

LeafNode subNode = (LeafNode)subMgr.getNode(nodeId);

NodeConfigListener sub1Handler =

new PubSubManager(getConnection(1), getService());

subNode.subscribe(getConnection(1).getUser());

subNode.addConfigurationListener(sub1Handler);

//Change node configuration

ConfigureForm currentConfig = creatorNode.getNodeConfiguration();

ConfigureForm form =

new NodeConfigCoordinator(queue, “sub1”);

form.setPersistentItems(

new ConfigureForm(currentConfig.createAnswerForm());

form.setDeliverPayloads(

true);

form.setNotifyConfig(

false);

creatorNode.sendConfigurationForm(form);

//Listen for event notification

ConfigurationEvent event = queue.take().

true);

event;

But we are not getting any event.

I am not sure, whether #10 of http://www.igniterealtime.org/community/message/195261#195261 is talking about same issue?

Thanks,

Ujval

It is caused by that issue since the client lib was written for version 1.12 of the spec, but the server is not yet compliant… It won’t work until that issue is resolved when the server is updated.

The older version didn’t put the node id in the config message, so you couldn’t link the message to the node that had been configured.