如何从Java应用程序收听Windows事件? [英] How can I listen to Windows events from a Java app?

查看:464
本文介绍了如何从Java应用程序收听Windows事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用C ++编写的进程,它使用CreateEvent引发一个命名事件。
是否有一个Java实现的WaitForSingleObject函数?



有没有更好的方法来传递C ++或.NET进程和Java进程之间的事件? / p>

(我知道使用JNI包装任何我想要的电话的选项,我正在寻找一个已经照顾它的库)。



谢谢,



Ariel

解决方案

可能有用的技术:




I have a process written in C++ that raises a named event using CreateEvent. Is there a java implementation of the WaitForSingleObject function?

Is there a better way to pass events between a C++ or .NET process and a Java process?

(I am aware of the option to use JNI to wrap whatever calls I want. I am looking for a library that already took care of it.)

thanks,

Ariel

解决方案

Technolgies which might be useful:

  • Java Native Access (JNA) provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code—no JNI or native code is required.

  • Message oriented Middleware which includes C/C++ drivers, for example Apache ActiveMQ, OpenMQ or xmlBlaster

这篇关于如何从Java应用程序收听Windows事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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