Connecting Tech Pros Worldwide Help | Site Map

Inter-app Messaging

  #1  
Old June 27th, 2008, 05:17 PM
Mark
Guest
 
Posts: n/a
Hi,

I'm relatively new to Java, but have been a programmer for decades. I
would like multiple instances of my Java app (on different computers on
the same local LAN) to communicate with each other through notifications
of some sort. For example, when instance 1 does a certain action,
instances 2, 3, and 4 should be notified about it so they can react
accordingly. I'm unaware of existing Java classes that deal with this
sort of thing, but I'm sure they must exist. Can someone please give me
a tip or two in this regard?

Mark
  #2  
Old June 27th, 2008, 05:17 PM
Dave Miller
Guest
 
Posts: n/a

re: Inter-app Messaging


Mark wrote:
Quote:
Hi,
>
I'm relatively new to Java, but have been a programmer for decades. I
would like multiple instances of my Java app (on different computers on
the same local LAN) to communicate with each other through notifications
of some sort. For example, when instance 1 does a certain action,
instances 2, 3, and 4 should be notified about it so they can react
accordingly. I'm unaware of existing Java classes that deal with this
sort of thing, but I'm sure they must exist. Can someone please give me
a tip or two in this regard?
>
Mark
Sun (Java creator) has a good tutorial series. The bit on sockets is at:

http://java.sun.com/docs/books/tutor...rking/sockets/
--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
  #3  
Old June 27th, 2008, 05:17 PM
Boris Tkachenko
Guest
 
Posts: n/a

re: Inter-app Messaging


Use RMI.

"Dave Miller" <dave@spambox.comwrote in message
news:b%EUj.2182$Hh.2078@trndny01...
Quote:
Mark wrote:
Quote:
Hi,

I'm relatively new to Java, but have been a programmer for decades. I
would like multiple instances of my Java app (on different computers on
the same local LAN) to communicate with each other through notifications
of some sort. For example, when instance 1 does a certain action,
instances 2, 3, and 4 should be notified about it so they can react
accordingly. I'm unaware of existing Java classes that deal with this
sort of thing, but I'm sure they must exist. Can someone please give me
a tip or two in this regard?

Mark
>
Sun (Java creator) has a good tutorial series. The bit on sockets is at:
>
http://java.sun.com/docs/books/tutor...rking/sockets/
--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/

  #4  
Old June 27th, 2008, 05:17 PM
Axel Hallez
Guest
 
Posts: n/a

re: Inter-app Messaging


Mark wrote:
Quote:
I'm relatively new to Java, but have been a programmer for decades. I
would like multiple instances of my Java app (on different computers on
the same local LAN) to communicate with each other through notifications
of some sort. For example, when instance 1 does a certain action,
instances 2, 3, and 4 should be notified about it so they can react
accordingly. I'm unaware of existing Java classes that deal with this
sort of thing, but I'm sure they must exist. Can someone please give me
a tip or two in this regard?
As suggested by a previous responder, you can use RMI to establish inter
JVM communication.
I would suggest that you also investigate the JMS (Java Messaging
Service). JMS is a standardized interface for messaging between loose
coupled applications. There several open source implementations of JMS:
http://java-source.net/open-source/jms
  #5  
Old June 27th, 2008, 05:17 PM
Robert Larsen
Guest
 
Posts: n/a

re: Inter-app Messaging


Avoid RMI

Boris Tkachenko wrote:
Quote:
Use RMI.
>
"Dave Miller" <dave@spambox.comwrote in message
news:b%EUj.2182$Hh.2078@trndny01...
Quote:
>Mark wrote:
Quote:
>>Hi,
>>>
>>I'm relatively new to Java, but have been a programmer for decades. I
>>would like multiple instances of my Java app (on different computers on
>>the same local LAN) to communicate with each other through notifications
>>of some sort. For example, when instance 1 does a certain action,
>>instances 2, 3, and 4 should be notified about it so they can react
>>accordingly. I'm unaware of existing Java classes that deal with this
>>sort of thing, but I'm sure they must exist. Can someone please give me
>>a tip or two in this regard?
>>>
>>Mark
>Sun (Java creator) has a good tutorial series. The bit on sockets is at:
>>
>http://java.sun.com/docs/books/tutor...rking/sockets/
>--
>Dave Miller
>Java Web Hosting at:
>http://www.cheap-jsp-hosting.com/
>
>
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Interprocess communication. Michael Justin answers 3 November 4th, 2008 05:05 PM
c#: inter-object event messaging (mediator pattern?) halekio@yahoo.com answers 1 April 25th, 2007 05:55 AM
Inter-object event messaging (Mediator Pattern?) (very long sorry) halekio@yahoo.com answers 1 April 24th, 2007 09:55 PM
Requesting Example code: Threads and Messaging gmtonyhoyt@yahoo.com answers 4 November 15th, 2005 12:54 AM
IDL Vs WSDL ---- a comparison Generic Usenet Account answers 24 July 20th, 2005 08:25 AM