This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application to get remote users information

 
shailesh jamloki
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shailesh jamloki
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If any one has any idea?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64828
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Gamini Sirisena
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic