Meaningless Drivel is fun!
The moose likes Java in General and the fly likes application to get remote users information Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "application to get remote users information" Watch "application to get remote users information" New topic

application to get remote users information

shailesh jamloki
Ranch Hand

Joined: Oct 28, 2004
Posts: 38
I want to create a java program, which does following thing.

1) I want to check the user logged in to the remote windows-system in the network.

windows allows only two users at time to use the remote system.

1)manually i use remote system desktop to login to remote windows system.
2) if there are already two users logged in. i get msg. "there is already one user logged in. do you want to end his session."

So my program should find out, who are the users logged into the remote system?

Thanks In advance
[ September 15, 2008: Message edited by: shailesh jamloki ]
Rob Spoor

Joined: Oct 27, 2005
Posts: 20274

Please Use A Meaningful Subject Line. About 99.9% of all posts here in the Saloon are created by people who require help. If everybody would use "help required" it would be a mess!

As for your problem, I doubt that Java has any support for this by default. I fear you may have to use JNI instead.

How To Ask Questions How To Answer Questions
shailesh jamloki
Ranch Hand

Joined: Oct 28, 2004
Posts: 38
Thnx Rob Prime

For your reply. I have updated the subject line. and I agree with you.

Can you please elaborate your solution a little bit more.

shailesh jamloki
Ranch Hand

Joined: Oct 28, 2004
Posts: 38
If any one has any idea?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please read this.

[Asking smart questions] [About Bear] [Books by Bear]
Gamini Sirisena
Ranch Hand

Joined: Aug 05, 2008
Posts: 378
How about SNMP?

I havne't the faintest idea whether this will work, but I think worth a look to find out whether it will help..

Also Does Windows have a similar software/mechanism to achieve this? Might be worth a look at that too. It could be that windows may have a service that you could talk to get this information.

Another approach to look at would be to use a JNI layer and access a relevant windows API and use a java server application which a java client can use remotely..

Hope this helps..
Ramya Chowdary
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
Java is not a good choice,though you can do it......

you can use windows WMI to get the details, but WMI programming in c++ is very complex.If you stuck, I can give my previous WMI project.

you need JNI to communication between C/C++ DLL and Java.
As for developing in java, may be you can atmost develop GUI in java.

I would suggest to write as win32 application.
I agree. Here's the link:
subject: application to get remote users information
jQuery in Action, 3rd edition