aspose file tools*
The moose likes Distributed Java and the fly likes Send message between two machine on an intranet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Send message between two machine on an intranet" Watch "Send message between two machine on an intranet" New topic
Author

Send message between two machine on an intranet

Hardik Raja
Ranch Hand

Joined: Feb 07, 2006
Posts: 117
Dear JavaRanchers,

I have a requirement for my application, but I am not aware of any technology/technique to implement it


**REQUIREMENT**

There are two machines on an intranet, and I would like to send message from one machine to the other. Although I am aware of RMI and Socket programming, I dont wanna use them as they both require to start some program at the destination machine as well. In this case is there any other technique in which the message can be sent without having any program running at the destination machine


Sorry if my requirement creates some confusion, feel free to ask questions.

Could anyone please provide some input on it?

Kind regards,
Hardik Raja
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

Hardik Raja wrote:
**REQUIREMENT**

There are two machines on an intranet, and I would like to send message from one machine to the other. Although I am aware of RMI and Socket programming, I dont wanna use them as they both require to start some program at the destination machine as well. In this case is there any other technique in which the message can be sent without having any program running at the destination machine



Then to whom you are sending the message ? BTW, what does the "sending a message" mean in your context ?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You can't send a message from Machine A to Machine B unless Machine B is prepared to receive the message. This would require doing something to Machine B (such as starting a server to receive your messages). If you aren't allowed to change Machine B then you are forced to rely on existing services which are already present there. So have a look and see what you've got available.
Hardik Raja
Ranch Hand

Joined: Feb 07, 2006
Posts: 117
Dear Vijitha Kumara,

Many thanks for your reply.

Then to whom you are sending the message ?


The message is to sent to another machine in the network, The start machine has the IP address of the destination machine.


BTW, what does the "sending a message" mean in your context ?


Sending message means a text string(message) is sent from start machine which would be displayed in a window at the destination machine.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine.

Kind regards,
Hardik
Hardik Raja
Ranch Hand

Joined: Feb 07, 2006
Posts: 117
Dear Paul,

Many Thanks for your reply.

You can't send a message from Machine A to Machine B unless Machine B is prepared to receive the message. This would require doing something to Machine B (such as starting a server to receive your messages). If you aren't allowed to change Machine B then you are forced to rely on existing services which are already present there. So have a look and see what you've got available.


Yeah exactly, I totally agree with you on this.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine, it works because there is a service running at the destination machine waiting for requests.

In such a case, are you aware of any underlying service running at the destination machine?
In my case the start machine platform is Ubuntu(on which running JAVA desktop application will invoke the message to be sent) and the destination machine platform is Windows

Kind regards,
Hardik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send message between two machine on an intranet