what is the specific setup of your application?
I've worked on development where the front end was C++ and the back-end was Java. We used RPC calls between the two systems to communicate which amounts to defining an HTTPServlet and using the post methods to pass back and forth serialized packets of information.
If one of the pieces if already compiled into DLL's you will probably want to go the JNI route then.