How to use Mqueue


I'm a bit puzzled, how to use mqueue support in a generic way.
If I interpreted the code correct, I create a Mqueue connection,
by setting transport to ORO_MQUEUE_PROTOCOL_ID in the connection
The problem is now, if I do this on a local connection, I would get
a out of bound Mqueue connection, instead of a shared mem
connection, which I would not want. Is there a way to figure out,
if both ports are in the same process ? (Note, I am creating connections
over corba calls, so isLocal would not work for me).

Also, I could not find a way, to figure out, if the other port is
on the same machine, and if I can actually use mqueue.

Thanks in advance