powered by Jive Software

Setting resource priority for Smack 3.0.4

I have not found a way to do this. I have seen that this is managed upon last presence.

I have a myusername/home and myusername/work both logged in. If someone sends a message to myusername I would like both clients to receive the message. Is this possible?

Here is how to set resource and priority. You can set resource when you login
connection.login(username, password,RESOURCE_ID);

Here is how you set the priority

Presence presence = new Presence(Presence.Type.available);

I will be glad if the questioner come back and give me point for answering