Having trouble using multiple clients in same vm

Hello,

I am working on a webapp that needs to talk to wildfire. I want to have multiple users connected to the webapp also connect to wildfire. I can establish the connections and I can see the server receiving requests and dispatching replies, but the second client in the webapp does not receive the replies. I am not able to locate the problem. Has anyone tried this ?

Thanks,

-Jayant.

Welcome Jayant,

are you using Smack to create connections to Wildfire? It may help a lot to give some more details about your webapp and if you think that it is a Smack problem to post it in the appropriately forum. I’'m not aware of a problem when using multiple clients, Smack is thread safe.

LG

Hello LG,

Yes, I am using smack api to create connections. I will always have some users in the db and some I will have to add to wildfire during the webapp lifetime. I have a plugin that will add new users to wildfire. I can create multiple connections for users who are already in the database. Problem is that when I add a new user to the db, the XMPPConnection object behaves strangely with those credentials. I create the user -> I create a new XMPPConnection object -> login. The login goes through fine, however when I check the connection the user id on it is entirely different. Its not anything in the db. This does not happen with the users who are already in the db. I am using, wildfire 2.5.1 and smack 2.2.0

Thanks,

-Jayant.