How to connect two client at a tome

Hi,

I am trying to create two clients using Smack libraries

  1. Message(java object) provider : which send messages to Openfire bus.

  2. Message (java object) receiver : which will receive the messages sent by the client1.

And I want to run both clients at same time.

I did not get any sample code from the site. So can anyone help me?

Thanks in advance!

Ciao,

aj