views:

20

answers:

1

Hello. I have written a persistent windows service in java that runs on boot. I have also written a GUI monitor in java that loads on user login. I would like to be able to have multiple instances of the GUI monitor connect to and control the single backend service via the observer pattern. All of the logic is already implemented with the exception of the connection between the different java processes.
Can anyone suggest to me an api or technique that can make this possible? I can think of ways to accomplish something similar using registry polling in both front end and back end, but is there a more direct way to do this?

Thanks.

+1  A: 

Any particular reason you want the Observer pattern? It's not really meant for controlling services. If you don't need this to work across the web or across firewalls, then perhaps Java RMI will be your best bet.

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

The Alchemist
The only reason I wanted the observer pattern is because that's how the program was implemented before I decided to split it into user and system level services. The documentation for the java RMI makes it look pretty promising. Thanks for the advice.
S.C.
@S.C. No problem! If you're using Spring, RMI is a breeze.
The Alchemist