To Add Micro Focus Support for EJBs

Restriction: This topic applies only when the Enterprise Server feature is enabled.
  1. Locate the file mfejblib.jar, which contains the Micro Focus support for EJBs.

    Specific versions of this file are supplied for each supported application server and J2EE version. They are available in subdirectories under %ProgramFiles(x86)%\Micro Focus\Visual COBOL\javaee in your COBOL system installation or the CD or DVD. They are in the following the application server subdirectories:

    • javaee5/oracleweblogic10
    • javaee6/ibmwebsphere85
    • javaee6/ibmwebsphere855
    • javaee6/jboss64EAP
    • javaee6/oracleweblogic1211
    • javaee7/ibmwebsphere90
    • javaee7/jboss70EAP
    • javaee7/oracleweblogic1221
  2. Copy mfejblib.jar to the root directory of your enterprise archive file (.ear). By default, the mfejblib.jar belongs in the root because the classpath is set to this in the EJB's manifest.mf file.

    If you copy mfejblib.jar to a different directory, you need to change the classpath in the manifest.mf file in the EJB's .jar file, which is in \myservice\myservice.deploy.

  3. Add the mfejblib.jar file to the archive file that you want to deploy.

    For most application servers, you can do this using their administrative tools. Alternatively, you can use a jar command similar to the following:

    jar -uvf myApplication .ear mfejblib.jar