aspose file tools
The moose likes Distributed Java and the fly likes Reading Unix Message Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Reading Unix Message Queue" Watch "Reading Unix Message Queue" New topic
Author

Reading Unix Message Queue

Mike Davi
Greenhorn

Joined: Oct 10, 2003
Posts: 2
I have the task of writing a program that must read messages sent from another program, process the message and send it back form where it came from. This is in a Unix environment.

Is there a way to read the Unix message queue using J2SE?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

POSIX message queues? I don't know of any existing Java interface to this... I did find the jmqueues project on Java.net, but it doesn't look like anything is even there... If you need 2 Java programs to talk to one another, it would probably be a better idea to go with RMI. If you need to interface with an existing program that already uses POSIX message queues for IPC - you'd probably have to use JNI to wrap the POSIX libraries.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Reading Unix Message Queue
 
Similar Threads
Question on MQ
error while connecting to queue
send a JMS to remote machine
Question: Where and when should I use the collection (Lists, Stack, etc . . .)
MQSeries programming with Java API and JMS API