I have been able to LOAD a COBOL DLL - using com.microfocus.cobol.RuntimeSystem.cobload(xxx.dll) - from inside of a Spring Application that is running in a JBOSS or WAS Server when using version 3.0 of Visual COBOL or COBOL SERVER runtime in a Windows environment and using OpenJDK 1.8.0_265.
In addition, after the LOAD, I was successfully able to execute the COBOL DLL with a call to com.microfocus.cobo.RuntimeSystem.cobcall("PROGRAM_ENTRYPOINT", params).
I have now upgraded to version 6.0 of VCE and COBOL Server and get the below message on Windows when attempting the LOAD itself - not got to cobcall as yet:
"java.lang.UnsatisfiedLinkError: COBOL Runtime - unsupported JVM"
I am also attempting for the first time, to compile to SO (Unix) and LOAD the same on the App Server (JBOSS) running on Linux where I get the below message (compiled and linked via Dev Hub):
"Application should use "cobjrun" to execute this application instead of the default "java" trigger.
Question: How would you call a DLL or SO file from an Application Server like JBOSS. Would it be any different from what I was successfully able to do with Visual COBOL 3.0. Does the cobol code have to be compiled to JVM COBOL Byte code first as some microfocus documents suggest. How do I do that. How was it working so far for me in VCE 3.0 My current working setup is NOT running under JNI.