Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send message between two machine on an intranet

 
Hardik Raja
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic