Getting instance of a logged in user

Hi,

I am trying to develop a load and stress testing application for OpenFire using Smack API. I want to initiate 1000 concurrent user chat in beginning. Everything is working fine and I am able to log in 1000 user with the single Java program using different resources. The problem is, when I have to send message to a particular user, I have to follow this process

  1. Connect the user

  2. send the message(to say 50users)

  3. Disconnect (and then connect another user)

By this process I am not able to create concurrent users. Is there any way through which we can first make 1000 users login using Smack, and then get the instance of a particular user so that we can send message through it so that at least 1000 users can chat at the same time.

Thanks.