Accessing Linux Queues through Java

Hi i was Java programmer, who shifted to C and was involved in programming on Linux using Linux Message Queues (use ipcs command to view status )I want to know how can i use a Java to fill or read message in and out from Linux Queues.Many thanks Neeraj
[295 byte] By [neeraj.sharma786a] at [2007-11-27 6:16:06]
# 1

Java is platform independend and therefore you cannot do platform specific things. By definition java code should be able to run on any platform, and linux queues are not going to work on windows or mac.

But if you have a command prompt command that you can use, you can use Runtime.exec() to call it and get the output. Perhaps you can do something with that. Or perhaps if you do a google search you can find a third party API that can work with these queues. If all else fails, you can use JNI to call a native library that you write yourself. Since you know C, you should be able to figure that out.

gimbal2a at 2007-7-12 17:27:26 > top of Java-index,Java Essentials,Java Programming...