windows posix java_Java Posix IPC是否有API?

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 know that I can use JNI but I need to do this ASAP so no time to develop that.

我想知道我是否可以訪問Java中的Posix消息隊列,因為我有一個無法修改的應用程序,並使用消息隊列與其他進程通信。有沒有api或包這樣做?我知道我可以使用JNI,但我需要盡快這樣做,所以沒時間開發它。

Regards.

2 个解决方案

#1

5

A bit of Googling found Posix for Java.

一些谷歌搜索找到了Posix for Java。

#2

3

Take a look at JNA at GitHub (latest JavaDoc). Quoting the project's description:

在GitHub上看看JNA(最新的JavaDoc)。引用項目的描述:

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.

JNA為Java程序提供了對本機共享庫(Windows上的DLL)的輕松訪問,而無需編寫除Java代碼之外的任何內容 - 不需要JNI或本機代碼。此功能可與Windows的Platform / Invoke和Python的ctypes相媲美。訪問在運行時是動態的,無需生成代碼。

Several projects are using it, including IntelliJ IDEA, Cassandra, and Netbeans.

有幾個項目正在使用它,包括IntelliJ IDEA,Cassandra和Netbeans。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值