wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "application to get remote users information" Watch "application to get remote users information" New topic
Author

application to get remote users information

shailesh jamloki
Ranch Hand

Joined: Oct 28, 2004
Posts: 38
Hello,
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
Shailesh
[ September 15, 2008: Message edited by: shailesh jamloki ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
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.

Thanks
Shailesh
shailesh jamloki
Ranch Hand

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

Joined: Jan 10, 2002
Posts: 60741
    
  65

Please read this.


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

Joined: Aug 05, 2008
Posts: 347
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..
Pratap koritala
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: application to get remote users information
 
Similar Threads
Java Application ... on server?
Authentication on Active Directory without having to inform login/pass again
Can I use RMI for remote system calls?
Why does this throw exception when called twice from java?
MS SQL Server and Java...