tags:

views:

217

answers:

2

Hi All: 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.

Regards.

A: 

A bit of Googling found Posix for Java.

Ignacio Vazquez-Abrams
yep, thanks i was looking that a few minutes ago, i will see if this helps, thanks a lot for your time.
Jesus Carrillo
A: 

Take a look at JNA at java.net. 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 and Netbeans.

unhillbilly