WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Enabling endpoints for a Web service-enabled EAR file with an assembly tool

This task explains how to enable an enterprise archive (EAR) file that has been assembled with all the required artifacts for Web services. The artifacts are assembled into a Java archive (JAR) file in the previous task.

Before you begin

Before doing this task, you need to Assemble an enterprise bean Java archive (JAR) file into an EAR file.

You can assemble the EAR file with assembly tools that are provided with WebSphere Application Server.

Before you can use the assembly tool, you must configure the assembly tool.

Why and when to perform this task

This task is one of the steps required to develop and implement a Web service.

You can add one or more router modules to your Web services-enabled application. The EAR file is the Web services-enabled application.

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 Web services-enabled enterprise bean JAR modules exist in the EAR file, it is not necessary to use these tools.

To enable end points for a Web service-enabled EAR file, follow the steps provided in this task section.

Steps for this task

  1. Start an assembly tool. The assembly tools, Application Server Toolkit (AST) and Rational Web Developer, provide a graphical interface for developing code artifacts, assembling the code artifacts into various archives (modules) and configuring related Java 2 Platform, Enterprise Edition (J2EE) Version 1.2, 1.3 or 1.4 compliant deployment descriptors.
  2. Right-click the EJB project to enable.
  3. Click Web Services > Endpoint Enabler.
  4. Specify the transport and router module names in the corresponding fields.
  5. Click OK.

Result

You have added an HTTP or JMS router module to the EAR file for each enterprise bean JAR module contained in the EAR file. For HTTP, a context-root is configured for the application so that the Web services 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

Now that the EAR file has been enabled, you can deploy the EAR file into WebSphere Application Server.



Related tasks
Assembling Web services applications

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/twbs_endptenableratk.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)