RE: Get a user's awareness status in a back-end Java program Tomas Novak 20.Sep.03 06:11 PM a Web browser Sametime Developers Toolkit All ReleasesAll Platforms
First, thanks for your answering on Saturday.
The Servlet I'm working on is extracting data from Notes views and displaying them as customized report in HTML pages. These views sometimes contains usernames in their columns. If so, then it is demanded to show their STATUSES in the corporate SAMETIME server (such as Active, Away, Offline, etc.)
If I would like to very SIMPLIFY my description then I am about to provide the same functionality the "Awareness Applet" does. With the difference that I'm about to do it on the SERVER-SIDE.
I'm doing this in the following way (very briefly):
- create a STSession
- get a CommunityService
- log on to the CommunityService (here does the DISCONNECTION appear)
- create an AwarenessService
- create a Resolver
- create a WatchList
- resolve all the usernames I need
- retrieve all the user statuses I need
- log out from the Sametime server
- destroy the STSession
In order to LOG ON to the Sametime server I'm using the credentials - username and password - of the user who is currently logged into "my" web application.
Now the problem is that this user could (and usually is) logged on the Sametime server in a Sametime client in his browser.
And the BIG PROBLEM is that each time he refreshes the HTML page in his browser, thus the Servlet on the server logs on the Sametime server using the username and password of this user, he is DISCONNECTED in his own Sametime client.