Tutorial: Deploying JVM COBOL to an Application Server

It is possible to preserve your existing JVM COBOL business logic when deploying to an application server.

In order to build a multi-user application suited for an application server, you build your existing JVM COBOL code into the Enterprise JavaBeans (EJB) architecture (version 3.x or later).

A broad overview of the process is as follows:

  1. From a Java class that implements the EJB interface, you can call JVM COBOL business logic by wrapping it in a Micro Focus RunUnit class, which will provide the required multi-user environment.
  2. To ensure the JVM COBOL run-time system works correctly, each .jar file that is built into your packaged application must be deployed with a cobconfig.properties file with the contents:
    ejb=true
  3. Package this information into a deployable format, such as an enterprise archive file (.ear) or Web archive file (.war) and deploy it to your application server.

For a more detailed explanation of the process, using JBoss as the application server, see Tutorial: Deploying an Enterprise JavaBean Containing JVM COBOL to a JBoss Application Server.

In addition to the resources built into your deployed application, you must also consider how you are going to deploy the JVM COBOL run-time system.