jQuery in Action, 2nd edition*
The moose likes Sockets and Internet Protocols and the fly likes Want to send popup message from one computer to a group of computers in the same domain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Want to send popup message from one computer to a group of computers in the same domain" Watch "Want to send popup message from one computer to a group of computers in the same domain" New topic
Author

Want to send popup message from one computer to a group of computers in the same domain

sonali mishra
Greenhorn

Joined: Apr 10, 2012
Posts: 2

Hi,

I want to send pop up message (alert message ) from one computer to a group of computers in the same domain.
I will provide a list of employee IDs as input & the output will be the pop up message to the machines connected to the employee IDs.

Can anybody suggest me the solution approach in java to the problem statement above.
Note: I have tried widows "msg" command.

I changed the registry setting as "allowrpc=1" in the destination windows7 machines.
& tried sending message with the command below .


> msg /server:<IPAddress> <employeeId> <message>
or
> msg /server:<MachineName> <employeeId> <message>


It's saying "<employeeid> does not exist or disconnected" in the windows command prompt

Note : Please suggest me also how to get the IP address from the employee Id given.

Chris Janicki
Greenhorn

Joined: Aug 30, 2006
Posts: 21

I think you'll have to maintain an index of which IDs belong to which hosts/IPs. You could manually create a properties file (see java.util.Properties). It would be fancier to have a centralized directory that was automatically updated (e.g. as users login), but I don't know if Windows already offers such services built-in. You could build a central directory system yourself, but that's a bigger client/server project.
sonali mishra
Greenhorn

Joined: Apr 10, 2012
Posts: 2

I will think over this solution approach.
Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: Want to send popup message from one computer to a group of computers in the same domain