开发者

Java Posix IPC Is there an API? [closed]

开发者 https://www.devze.com 2022-12-20 15:13 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消