Java Web 应用程序与用户本地计算机中的 COM 组件交互
我们计划使用 Java Applet,它将下载到用户浏览器并使用 JNI 与 com 组件进行通信。小程序也将使用 Java 脚本与网页进行交互。
网页-> JavaScript ->小程序-> JNI-> COM
网页会显示COM返回的数据,也可以将数据发送回COM。
我想知道这里的专家能给我指出正确的方向,并提出比这更好的方法。
提前致谢, 拉梅什
We are planning to use Java Applet which will be downloaded to users browser and communicate with the com component using JNI. And also the applet will interact with the web page using Java Script.
Web page -> Javascript -> Applet -> JNI - > COM
The web page would display the data returned by the COM and also It can send the data back to the COM.
I wonder the experts here can point me to a right direction and suggests a better approach than this.
Thanks in advance,
Ramesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想使用 MS COM 对象 (ActiveX),那么我建议您查看 JACOB。这是从java到COM的桥梁。还有其他库可能会帮助您,猜猜这取决于您想做什么。无论如何,这并不容易。
您还必须退出小程序沙箱才能被允许执行这些操作。为此使用证书。
不过,我不知道如何与小程序中的 javascript 进行交互。
If you mean that you want to work with a MS COM object (ActiveX) then I suggest to take a look at JACOB. That's a bridge from java to COM. There are also other libraries out there that might help you, guess it depends on what you want to do. It won't be easy anyway.
You also have to get out of the applet sandbox to be allowed to do these things. Use a certificate for that.
I wouldn't know how to interact with javascript from an applet though.