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

Starting the GlassFish Application Server

The Java EE Service Engine starts together with GlassFish. Before deploying and performing test runs of a Composite Application project in the NetBeans IDE, make sure that the GlassFish Application Server is started.

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

  1. If the Services window is not visible, on the NetBeans IDE main menu choose Window -> Services.
  2. In the Services window, expand the Servers node.

    The Servers node should contain a GlassFish V2 subnode. If the GlassFish V2 node is not visible, see To Register the GlassFish Application Server with the NetBeans IDE.

    If a green arrow icon appears on the GlassFish V2 node, the server is running. If no green arrow icon appears, see To Start the GlassFish Application Server in the NetBeans IDE.

To Register the GlassFish Application Server with the NetBeans IDE

  1. If the Services window is not visible, on the NetBeans IDE main menu choose Window -> Services.
  2. In the Services window, right-click the Servers node and choose Add Server from the pop-up menu.

    The Add Server Instance dialog box opens.

  3. In the Choose Server page of the dialog box, select GlassFish V2 from the Server drop-down list.
  4. If you want to change the server name that the IDE uses to identify the server, type it in the Name field.
  5. Click Next .

    The Platform Location Folder page opens.

  6. In the Platform Location field, click Browse and select the installation location of the application server.
  7. Select the Register Local Default Domain option and click Next.
  8. Type the user name and password for the domain's administrator.

    If you accepted the default values during the installation, the user name is admin, the password is specified during installation.

  9. Click Finish.

To Start the GlassFish Application Server in the NetBeans IDE

  1. On the NetBeans IDE page, in the Services window, right-click the GlassFish V2 node and choose Start.
  2. Wait until the following message appears in the Output window:

    "Application server startup complete."

    When the server is running, the IDE displays a green arrow icon on the GlassFish V2 node.

    The Java EE Service Engineis represented as sun-javaee-engine in the Services window of the IDE, under the GlassFish V2->JBI->Service Engines nodes.

Enabling the JBI Framework

In some cases, you might have to enable the JBI framework to deploy a Java EE Service Engine component. The following command enables the JBI framework:

asadmin enable --user adminuser JBIFramework