Configuring JBoss

To install the JVM COBOL run-time system (mfcobolrts.jar) in JBoss 7.1.1 or later, you must configure it as a module of the application server.
  1. Create the following directory structure: JBOSS_HOME\modules\com\microfocus\cobol\runtime\main (Windows) or JBOSS_HOME/modules/com/microfocus/cobol/runtime/main (UNIX).
  2. Copy mfcobolrts.jar from the %COBDIR%\bin directory to the main directory.
  3. In the main directory, 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 directory should contain the following files:
    • mfcobolrts.jar
    • module.xml
  4. In Eclipse, in the project that will be deployed, add a MANIFEST.MF file, in the META-INF directory, that contains the following:
    Manifest-Version: 1.0
    Dependencies: com.microfocus.cobol.runtime
    Class-Path:
    
    Note: Ensure the order of the properties is as shown here.