Previous Topic Next topic Print topic


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. Set the environment variable JBOSS_HOME to point to the JBOSS application server installation location, for example: /usr/jboss/jboss-as-7.1.1.
  2. Create the following folder structure: JBOSS_HOME/modules/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
Previous Topic Next topic Print topic