Previous Topic Next topic Print topic


To generate an EJB without a client

  1. Consider making copies of the archive files (.ear .jar and .war) if any exist in the folder my-project\repos\my-service.deploy, because they will be deleted when you use the Deploy tool to generate the EJB. See the note below.
  2. In the Service Interfaces window, right-click the service interface you want to generate an EJB for.
  3. Click and specify the following:
    • On the General tab, choose EJB generation.
    • On the EJB Generation tab, choose the Application Server and its J2EE version. This ensures that the appropriate deployment descriptors are generated and packaged in the relevant archive files. If your application server is not listed, choose WebLogic 7.0, which will result in some deployment descriptors that you can ignore.
    • Also on the EJB Generation tab, specify the classpath of the J2EE SDK with which to compile the EJB.
    • Click OK.
  4. Deploy the COBOL service for the EJB to an enterprise server:
  5. Check the log in the output pane to confirm that the EJB is generated and compiled successfully. The EJB classes are stored in the directory structure under my-project\repos\my-service.deploy.
  6. Consider making a copy of the COBOL archive file (.car), if you intend to generate a client, because generating a client deletes the .car file. See the note below.
Note:

The Deploy tool deletes all the files in the folder my-project\repos\my-service.deploy before it starts. It then creates the .car file in that folder. Similarly the client generation process deletes all the files in that folder before it starts and then creates the .ear .jar and .war files in that folder.

This means that before you generate the EJB using the Deploy tool, you need to make a copy of any .ear .jar and .war files that you want to keep. You can then deploy the .ear .jar and .war to your J2EE application server at any time.

After you have generated the EJB, you need to make a copy the .car file before you generate a client. You might want to keep the .car file so that you can copy it to another machine and deploy it from the command line there.