64-bit Java application to use 32-bit dll

A Java application running under JBoss (using 64-bit JRockit) must communicate with the 32-bit C ++ version of the third-party (for external service calls). Are there any smarter ways to solve this problem than creating a .NET web service between the two?

+4
source share
1 answer

You will need to run a 32-bit process to load the dll. It may be another JVM that acts as an RMI server and loads the DLL using the JNI or web service.

An RMI server is likely to be more functional, but a web service might be simpler with all the tools available.

If you run an RMI server with a JNI route, look at Swig - this makes the JNI part a lot easier for those of us that have forgotten C ++.

+3
source

All Articles