I think the best way to do is using pure C++ or pure Java. Anyways if you already have these aplications and you want to integrate then the there are two ways of doing it
1) Using
SOAP 2) Using Custom made XML Messaging
I am not sure whether we could call Java classes from C++ using JNI, but I do know the other way is possible in JNI
--Siva Jagadeesan