Configuring JBoss

To install the JVM COBOL run-time system (mfcobolrts.jar) in JBoss or later, you must configure it as a module of the application server.
  1. Set the environment variable JBOSS_HOME to point to the JBOSS application server installation location, for example: %Program Files%\JBoss\jboss-version (Windows) or /usr/jboss/jboss-version (UNIX).
  2. Create the following folder structure: JBOSS_HOME\modules\com\microfocus\cobol\runtime\main (Windows) or JBOSS_HOME/modules/com/microfocus/cobol/runtime/main (UNIX).
  3. Copy mfcobolrts.jar from the %ProgramFiles(x86)%\Micro Focus\Visual COBOL\bin (Windows) or $COBDIR/bin (UNIX) folder to the main folder created in the previous step.
  4. In the main folder, create a new file called module.xml, and add the following to it:
    <?xml version="1.0" encoding="UTF-8"?>
    <module xmlns="urn:jboss:module:1.1" name="com.microfocus.cobol.runtime">
        <dependencies>
            <module name="javaee.api"/>
        </dependencies>
        <resources>
            <resource-root path="mfcobolrts.jar"/>
        </resources>
    </module>
    The main folder should contain the following files:
    • mfcobolrts.jar
    • module.xml