[Version 5.0.2 and later]Enabling a Web services-enabled EAR file with the endptEnabler command

Before you begin

Before doing this task, you need to assemble a Web services-enabled EJB JAR into an enterprise archive (EAR) file.

Why and when to perform this task

The endptEnabler command-line tool adds one or more router modules to the EAR file for each EJB JAR module within the EAR file. A router module provides an endpoint for the Web services in a particular Enterprise JavaBean (EJB) Java archive (JAR) module.

Each router module supports a specific transport such as HyperText Transport Protocol (HTTP) or Java Messaging Service (JMS). If there are no EJB JAR modules in the EAR file, it is not necessary to use these tools.

To enable an EAR file with the endptEnabler command:

Steps for this task

  1. Invoke the endptEnabler command from the install_root\bin directory.
    If you are using UNIX, 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 they are requested by the endptEnabler command.
    You are prompted for various input values for each Web services-enabled EJB JAR module in the EAR file. Typically, you should 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 Web services-enabled EJB JAR module contained in the EAR file. For HTTP, a context-root is configured for the application so the Web service can be invoked through a URL. The URL 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.

Related tasks
Assembling Web services applications based on Web Services for J2EE
Related reference
endptEnabler command



Searchable topic ID:   twbs_endptenablerendpt
Last updated: Jun 21, 2007 4:12:58 PM CDT    WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/twbs_endptenablerendpt.html

Library | Support | Terms of Use | Feedback