powered by Jive Software

How to specify resource?


I make use of smack api made a simple client chat with Spark(via openfire), when i as an anonymous login the server, how can i specify resource in smack client? Right now, the resource ware “55789290, ecac8f8e, etc.”


best regards,

rosen jiang

does anybody could help me?

smack documentation: loginAnonymously

doesn’t let you specify a resource at the moment apparently.

thanks advanced!

Hmm, Smack doesn’t seem to support resource binding on anonymously authenticated connections. I tried sending a bind request manually, but that didn’t result into anything either.

Unless anyone else has an ideay, you might need to hack Smack a little to get this to work.