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 EAP 6.4 installation location, for example: /usr/jboss/jboss-version.
  2. Create the following folder structure: JBOSS_HOME/modules/system/layers/base/com/microfocus/cobol/runtime/main .
  3. Copy mfcobolrts.jar from the $COBDIR/bin 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