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.