Using the Java EE Service Engine in a Project

Configuring and Starting the Java EE Service Engine

The Java EE Service Engine requires no configuration.

The Java EE Service Engine can be started in three ways. It starts automatically whenever a JBI service assembly which contains a Java EE Service Unit is deployed.

Users who work with the service engine in the NetBeans IDE must start the component from the GlassFish V2 application server.

ProcedureTo Start the Java EE Service Engine from the GlassFish V2 Application Server

  1. From the NetBeans IDE's main page, in the Services window, expand the GlassFish V2 -> JBI -> Service Engines nodes.

  2. Right-click sun-javaee-engine and choose Start from the pop-up menu.

    The following message appears in the Output window:

    Engine sun-javaee-engine has been started.

ProcedureTo Start the Java EE Service Engine from the Admin Console

  1. In the NetBeans Services window, log in to the GlassFish Administrator Console by right-clicking your application server and choosing View Admin Console.

    Ensure that the GlassFish application server is running. A green arrow icon next to the server node indicates that the server is running. If the server is not running, right click the server name and choose Start from the pop—up menu.

  2. You can also open the Admin Console from your web browser using the correct URL, for example: http://localhost:4848.

    The default log in username isadmin, and the password is adminadmin.

    The Sun Java System Application Server Admin Console opens in a new browser window.

  3. On the left pane under the JBI node expand Components and choose sun-javaee-engine.

    The Java EE Service Engine properties page opens.

  4. Click on the Start button on the General tab page to start the Java EE Service Engine.

ProcedureTo Start the Java EE Service Engine Using Command Line Interface

  1. Navigate to the location where you have installed the GlassFishESB and open the folders glassfish-> bin.

  2. Double click asadmin.batfile.

  3. At the asadmin command prompt type start-jbi-component sun-javaee-engine.

Installing Java EE Service Engine Using Command Line Interface

The Java EE Service Engine comes installed and configured when the GlassFish application server is installed. If you uninstall the Java EE Service Engine accidentally, you can use the CLI (Command Line Interface) to install it again manually.

Type the following command:

asadmin install-jbi-component [ApplicationServer-InstallDir]/jbi/components/sun-javaee-engine/appserv-jbise.jar

Other Operations Using the Command Line Interface

Using the CLI we can perform many operations.

asadmin uninstall-jbi-component sun-javaee-engine