Connecting GUI to java windows service

I wrote a persistent windows service in java that starts at boot. I also wrote a GUI monitor in java that loads the user. I would like to be able to connect multiple instances of the GUI monitor to a single server service and control it through an observer pattern. All logic has already been implemented, with the exception of the connection between different java processes.
Can anyone suggest me an api or technique that can make this possible? I can think of ways to achieve something like this using a registry poll at both ends and at the end, but is there a more direct way to do this?

Thanks.

+4
source share
1 answer

Any specific reason why you want to use the Observer pattern? It is not intended for service management. If you don’t need this to work over the Internet or through firewalls, Java RMI may be your best bet.

You can only do with Java, serialize objects, etc.

+1
source

All Articles