Pubsub - hello world example

This would be the default case if you have included a payload.

public void handlePublishedItems(ItemPublishEvent items)

{

PayloadItem item = items.getItems().get(0);

SimplePayload payload = item.getPayload();

String payloadData = payload.toXML();

}

When I send notification the receiver’s payload contains null for each tag. For example:

Lord of the Rings is received as nullnullLord of the Ringsnullnull

Any thoughts?

Please refer to the manual instead of this thread as this thread refers to pubsub before it was integrated into Smack. It was integrated in version 3.2 and the documentation was added to show its usage.

I am locking this thread to stop new postings on a very outdated discussion.