Operating Systems: i5/OS
Personalize the table of contents and search results
Enable an EAR file for Web services with the endptEnabler command
Use the endptEnabler command-line tool to enable
an enterprise archive (EAR) file for Web services.
Before doing this task, you need to assemble a Web services-enabled enterprise Java archive (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
- Invoke the endptEnabler script on the
Qshell command line from the app_server_root/bin directory.
- Enter the name of the EAR file, when prompted.
- 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.
Results
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.
}
endptEnabler command
Related tasks
Assembling Web services applications
|