If you just want to exchange data structures, you might take a look at JSON and YAML. There are pretty good Perl bindings for both, and I suspect that there are also Java libraries for both.
COBRA CORBA is usually used when you need more features, for example callbacks into the remote system.