AnsweredAssumed Answered

Accessing Presence (Online Status)

Question asked by inevative on Oct 18, 2010

I am hoping this is the correct section to be posting so here it goes...


I am in the middle of developing a web based chat using OpenFire and Smack and Coldfusion and i am having a bit of trouble trying to access the Presence status of roster entries. I can get there ok but i am always getting a NULL response back.  I read i the documentation that there is something call setSendPresence() that you can pass into the connection object but you have to use the ConnetionConfiguration method to connect to the server.  I cant find much in the Smack documentation that actually explans how to do this.


I create an XMPPConnection by doing this...

createObject("JAVA", "org.jivesoftware.smack.XMPPConnection").init(Server)


Now i see in the .jar class packahe that there is a ConnectionCnofiguration.class file so i assume i should be able to connect to it like this...

createObject("JAVA", "org.jivesoftware.smack.ConnectionConfiguration").init(Server, 5222)


But it errors saying there is not a ConnectionCnofiguration class i nthe package.




1 ) Do you have to use setSendPresence() for a users presence when they login to be available to access?

2 )  Is there an easier way to get the presence value for a roster entry?


Any help would be great