I’‘m currently working on a Swing Applet using Smack and now I’‘m wondering whether there’‘s any way in which I can get access to all my contact’'s Resources?
Should I just send all messages to user@host or is there any way I can select on of their available resources so I can direct he message immediately to user@host/resource?
If a user logs-in in two clients (with different resources), then Smack will keep track of the last Presence. This means that the resource of the last login will be kept. Therefore, you will be able to send messages to user@host or to user@host/Res1 where Res1 is the last resource from where the user logged in.
However, IMO it would be great if we can track all the resources where the user is logged. Therefore, you will be able to choose to which resource you want to send a message. May be we can add this as an enhancement for the next release.