Re: Inter-app Messaging



Mark wrote:
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
.



Relevant Pages

  • Re: JMS for CPython via JPype?
    ... >>for a CPython program to use JMS? ... > - A Java interface that is used by python for the JProxy ... > The Java and python publishers and subscribers work in any reasonable ...
    (comp.lang.python)
  • Re: how to wait for socket communications
    ... how to communicate the chars to Java. ... The picture information is an unsigned char*, with first all the red values ...
    (microsoft.public.win32.programmer.networks)
  • Re: how to wait for socket communications
    ... Well, in C++ I am converting the unsigned chars to chars, but I don't know ... how to communicate the chars to Java. ... to use socket communication between my C++ program and my Java program. ...
    (microsoft.public.win32.programmer.networks)
  • Re: JMS for CPython via JPype?
    ... >for a CPython program to use JMS? ... Java classes for a publisher and a ... Java classes that test the publisher and subscriber ... A Java interface that is used by python for the JProxy ...
    (comp.lang.python)
  • Re: how to wait for socket communications
    ... What seems to be good about sockets is that you can communicate whole arrays ... I created a Java program for drawing curves and I connected it to Adobe's ... I am calling ShellExecuteEx for calling my Java program from C++, ...
    (microsoft.public.win32.programmer.networks)