Thanks gellyfish,
I'm considering this option, and in this particular case (Tibco EMS), there may even be an sdk somewhere for Perl if I am lucky.
I'm tempted to use Inline::Java, but am not so familiar with it. Is it reliable in important systems, or does it suffer from "issues"?