Maybe something like RabbitMQ or ZeroMQ. I think you are looking for a layer / messaging protocol that provides its own client for Java and C ++, and that can handle (or allow you to process in your client code) any serialization problems correctly associated with your platforms (endian- ness will be the main question to pay attention to).
source share