Set Up the ProgramEJB Project

Walks you through the process of creating the ProgramEJB solution and project for the BookDemo application.

Create the ProgramEJB project

  1. In Visual Studio, click File > New > Project.
  2. In the New Project dialog box, expand Installed > COBOL.
  3. Click Enterprise Server, and then click Native.
  4. Select Enterprise Server Application.
  5. Complete the Name and Location fields as follows:
    Name ProgramEJB

    By default, this is the name of both the project and the solution.

    Location c:\tutorials\IMTK
  6. Uncheck Create directory for solution.
  7. Click OK.

    Visual Studio opens the Solution Explorer for the ProgramEJB solution, showing the ProgramEJB project.

Add BookDemo demonstration files to the project

  1. Right-click the ProgramEJB project, and select Add > Existing Item from the context menu.
  2. Browse to the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Interface Mapping Toolkit\ServiceInterfaces\BookDemo folder.
  3. From the drop-down list, click All files (*.*), and then select the following files:
    • book.cbl
    • book-rec.cpy
    • bookfile.dat
    • bookfile.idx
  4. Click Add.

Save the ProgramEJB project

  • In the Solution Explorer, select the ProgramEJB project, and then click File > Save ProgramEJB on the Visual Studio main menu.