Java Posix IPC Is there an API? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionI'm wondering if I can access to a Posix Message Queue in Java as I have an application that can't be modified and uses a message queue to talk to other processes. Is there any api or package that do that? I kn开发者_开发问答ow that I can use JNI but I need to do this ASAP so no time to develop that.
Regards.
A bit of Googling found Posix for Java.
Take a look at JNA at GitHub (latest JavaDoc
). Quoting the project's description:
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. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes. Access is dynamic at runtime without code generation.
Several projects are using it, including IntelliJ IDEA
, Cassandra
, and Netbeans
.
精彩评论