开发者

GUI connection to java windows service

开发者 https://www.devze.com 2023-01-15 12:43 出处:网络
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 m

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 so开发者_开发问答mething similar using registry polling in both front end and back end, but is there a more direct way to do this?

Thanks.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消