如何从Java应用程序收听Windows事件? [英] How can I listen to Windows events from a Java app?
问题描述
是否有一个Java实现的WaitForSingleObject函数?
有没有更好的方法来传递C ++或.NET进程和Java进程之间的事件? / p>
(我知道使用JNI包装任何我想要的电话的选项,我正在寻找一个已经照顾它的库)。
谢谢,
Ariel
可能有用的技术:
-
Java本机访问(JNA)可以让Java程序轻松访问本机共享库(Windows上的DLL),而无需编写除Java代码之外的任何东西 - 不需要JNI或本机代码。 p>
-
面向消息的中间件包括C / C ++驱动程序,例如 Apache ActiveMQ , OpenMQ 或 xmlBlaster
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屋!