在 Windows 上使用 Java Service Wrapper GUI 与桌面交互 [英] Using Java Service Wrapper GUI to interact with desktop on windows

查看:38
本文介绍了在 Windows 上使用 Java Service Wrapper GUI 与桌面交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助!!

请我使用 Java Service Wrapper 创建了一个 Java Windows 服务,现在我的服务应该在某些时候弹出一个对话框,但这似乎不起作用.

Please I created a Java Windows Service using Java Service Wrapper, now my Service is supposed to pop up a dialog at certain times and this doesn't seem to work.

我在安装前测试了该服务,它运行得很好,但安装该服务后没有任何反应.

I've tested the service before installing and it worked just fine, but after installing the service nothing happens.

请问我该如何解决这个问题?

Please how do I solve this issue?

推荐答案

我认为你需要使用 Java RMI,或者基于它的东西:Jini、CORBA、远程 OSGi 等.你应该根据服务器-客户端架构重新设计你的程序:windows服务必须是gui应用程序的客户端,并在适当的时候调用它的方法来弹出适当的寡妇.如果您需要从 gui 应用程序回调到 windows 服务,您还应该将最后一个设计为 gui 应用程序的客户端.

I think you need to use Java RMI, or something based on it: Jini, CORBA, remote OSGi, etc. You should redesign your program according server-client architecture: windows service must be a client to gui app and call its methods to pop up proper widow in proper time. If you need callback from gui app to windows service you should also design the last as a client to the gui app.

这篇关于在 Windows 上使用 Java Service Wrapper GUI 与桌面交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆