Previous Topic Next topic Print topic


To Add Micro Focus Support for EJBs

  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\Studio Enterprise Edition x.x\base\bin\j2ee14 and \javaee5 in your COBOL system installation or the CD or DVD. They are in the following the application server subdirectories:

    • j2ee14/beaweblogic9
    • j2ee14/ibmwebsphere6
    • j2ee14/ibmwebsphere61
    • j2ee14/jboss4
    • javaee5/ibmwebsphere7
  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

Previous Topic Next topic Print topic