Previous Topic Next topic Print topic


Create a Service Interface

Walks you through the process of creating a service interface for the BookDemo application.
Restriction: This topic applies only when the Enterprise Server feature is enabled.

Create a Java type service interface (EJB) that uses the source program book.cbl.

  1. From the Solution Explorer, right-click the ProgramEJB project; then click Add > New Item.
  2. Expand COBOL; then select Native.
  3. In the center pane, click Service Interface.
  4. In the Name field, type ProgramEJB; then click Add.
  5. Select Java Interface as your type of interface and COBOL Program as your type of source; then click OK.

At this point, Visual Studio adds the ProgramEJB service interface to the Solution Explorer and invokes the Interface Mapper. We are ready to define the details of the service interface.

Previous Topic Next topic Print topic