Using the Java EE Service Engine to Create a Composite Application

Creating a Composite Application Project

A EJB Module project is not directly deployable. You must first add a EJB Module project, as a JBI module, to a Composite Application project. You can then deploy the Composite Application project. Deploying the project makes the service assembly available to the application server and enables its service units to run.

ProcedureTo Create a Composite Application Project

  1. From the NetBeans IDE's main menu, choose File -> New Project.

    The New Project wizard opens.

  2. In the Categories list, select the SOA node and in the Projects list select Composite Application .

    Selecting the category and composite application
  3. Click Next.

  4. In the Name and Location page, change the project name to HelloCompositeApp, and specify the location of project files or just use the default location.

    Name and Location of the project
  5. Leave the Set as Main Project option selected and click Finish.

  6. To add the EJB Module as a JBI module to the Composite Application project, right-click HelloCompositeApp and choose Add JBI Module.

    The Select Project dialog box opens.

  7. Select the Hello project you created earlier and select dist/Hello.jar under Project JAR Files and click Add Project JAR Files button.

    Adding JAR files to the project

    The Select Project dialog box closes and the Hello.jar file is added to the JBI Modules node of the HelloCompositeApp Composite Application in the Projects window.