Enable an EAR file for Web services with the endptEnabler command

 

+

Search Tips   |   Advanced Search

 

This task explains how to use the endptEnabler command-line tool to enable an EAR file for Web services.

 

Before you begin

Before doing this task, we need to assemble a Web services-enabled enterprise JAR into an EAR file.

 

Overview

The endptEnabler command-line tool adds one or more router modules to the EAR file for each Web service-enabled enterprise bean JAR module within the EAR file. A router module provides an endpoint for the Web services in a particular enterprise bean JAR module.

Each router module supports a specific transport such as HTTP or Java Message Service (JMS). If no enterprise bean JAR modules exist in the EAR file, it is not necessary to use these tools.

Enable an EAR file with the endptEnabler command by following the actions listed in the steps for this task section.

 

Procedure

  1. Invoke the endptEnabler command from the install_root\bin directory. If you are using Linux or Unix platforms, invoke the command from the install_root/bin directory.

  2. Enter the name of the EAR file, when prompted.

  3. Enter various input values as requested by the endptEnabler command. You are prompted for various input values for each enterprise bean JAR module that is enabled for Web services in the EAR file. Typically, you accept the defaults for each prompt. See endptEnabler prompts and commands for more information about endptEnabler command prompts.

 

Result

An HTTP or JMS router module is added to the EAR file for each enterprise bean JAR module that is enabled for Web services and contained in the EAR file. For HTTP, a context-root is configured for the application so that the Web service can be invoked through a Web address. The Web address used to invoke the Web service is

http://host[:port]/context-root/services/port-component-name

 

What to do next

Deploy the EAR file into WebSphere Application Server. An assembled EAR file that is enabled for Web services is required for deployment.

 

See also


endptEnabler command

 

Related Tasks


Assembling Web services applications