jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Logoff users from a tool if they are inactive for a certain period of time. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Logoff users from a tool if they are inactive for a certain period of time.

Sumit Ranjan

Joined: Dec 20, 2005
Posts: 24
Hi Guys,

I have already posted this question in the forum for "General Computing" but since I didnt get any reply till now, i just thought may be i will ask you guys if you can help me on this.(Bert has confirmed me saying that its ok for my question to be posted in more than one forum !!!)

I am faced with a typical problem at my workplace. We use Borland's StarTeam as a configuration management tool for my project.Since, we have fixed number of licenses, at a time only fixed number of people can login to it.(Thats what I think when it gives the error message) Others trying to login will not be able to do so if that fixed number are already logged in.Now, most of the time I find that people who have logged in, forget to logoff and as a result what happens is that even though we have enough licenses, users are unable to login to the Server and get error messages telling them that the maximum number of licenses are in use. (They have to then painfully send mails to all in the project to log out of the server if one is not using it.) So, faced with this problem,I want to write some kind of program which will gracefully logoff the users from the StarTeam server who are inactive (Dont know how to check for this now !!!) for a given period of time.(Say half an hour or so).

Also, I plan to put this program in the OS scheduler (Which happens to be Microsoft in my case) that would run every hour and run the program I have written and gracefully logoff users who have been inactive for a certain period of time.
Please guide me on how to go about solving this problem.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Please don't post the same topic in more than one forum. Bert may have suggested it was ok to post in a Java forum, please restrict this to a Java forum.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: Logoff users from a tool if they are inactive for a certain period of time.
It's not a secret anymore!