powered by Jive Software

Openfire lastactivity

Hello I wanted to know something about the following piece of code that I am using in one of my plugins for openfire. The following just gets the last activity date for a JID.

Session sess = sessionManager.getSession(address);

Date lastActive = sess.getLastActiveDate();

I noticed that if I am polling using the MUC.POLLMESSAGE from smack, the lastactivedate does not get updated. Is there a way to make sure that the lastactivedate gets updated when i am polling for new messages ?

Cheers.

I also tried to keep sending messages while connected and my session would obviously update the last activity. Is there anyway for doing that while I am only calling for multiuserchat.poll() . Thanks.