< Previous | Next >

Lesson 1: Create an OSGi project with EJB support

About this task

In this lesson, you create the initial projects that are required for the application. You use the OSGi bundle project wizard to create: a bundle with EJB support, an EJB client project to contain client interfaces, and an OSGi application that includes the bundles.

Procedure

  1. Launch the OSGi bundle project wizard. Click File > New > OSGi Bundle Project.
  2. Create a project with EJB support. Enter the following values in the OSGi bundle project wizard:
    Project name
    EJB
    Target runtime
    WebSphere® Application Server v8.5.
    Add EJB support
    Check Add EJB support and for this tutorial select EJB 3.1.
    Add bundle to application > Application project
    Check Add bundle to application and for Application project enter ConverterApp.
    New OSGi project with EJB support
  3. Click Next until you are at the EJB Module screen. Ensure that the box Create an EJB Client JAR module to hold the client interfaces and classes is checked. Ensure that Name is EJBClient and Client JAR URI is EJBClient.jar.
    EJB Module screen
  4. Click Next to go to the OSGi Bundle screen. Accept the default values.
    OSGi Bundle screen
  5. Click Finish. The ConverterApp, EJB, and EJBClient projects are created. At this point, there might be an error in the EJB project because a session bean needs to be created.
    Projects view
< Previous | Next >
Icon that indicates the type of topic Tutorial lesson topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: osgi_ejb_1.html