JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS Java EE Service Engine Tutorial     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the Java EE Service Engine to Create a Composite Application

Tutorial Requirements

Prerequisites

Tutorial Scenario

Starting the GlassFish Application Server

To Check the Status of the GlassFish Application Server in the NetBeans IDE

To Register the GlassFish Application Server with the NetBeans IDE

To Start the GlassFish Application Server in the NetBeans IDE

Enabling the JBI Framework

Creating an EJB Module Project

To Create the EJB Module Project

To Create a WSDL Document

To Create a Web Service from WSDL

To Clean and Build the EJB Module Project

Creating a Composite Application Project

To Create a Composite Application Project

Building and Deploying the Composite Application Project

To Build and Deploy the Composite Application

Testing the Composite Application

To Add a Test Case

To Run the Test Case

Summary

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.

To 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 .
    image: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.
    image: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.
    image: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.