I need to pass information from a shell script (called from a linux based app) to a java application.
Named pipes are a pain because I can't start/stop either service without considering complex repercussions to the read/write ends of the pipes.
Sockets are tough because if the listening process is restarted there's no queuing mechanism, and simple implementations require new sockets be constantly created (else the shell script will get very complex with check-and-restart-socket, and queuing code).
I was recently reading about these System V/POSIX linux message queues. I'm running Fedora 12, and wonder if there's a good way to configure these message queues and interact with them from Java.