174 Broker Interactions for Intra- and Inter-enterprise
7. Run the endptEnabler command line tool to add an HTTP router module to
the EAR file.
In WebSphere Studio V5.1, right-click the EAR project, and select Web
Services
→ Endpoint Enabler from the pop-up menu.
Tip: This step is only required if the Web service is implemented in an EJB
module.
Note: Alternatively, you could also use the command shown in
Example 8-5. To do this you first need to export the WSWholesale1EAR
project to an EAR file:
a. Right click the WSWholesale1EAR project and select Export....
b. Select EAR file and click Next.
c. Select the destination you want the EAR file to be exported to, for
example:
C:WebSphereAppServerinstallableAppsWSWholesale1EAR.ear
d. Click Finish.
e. Run the endptEnabler command:
C:WebSphereAppServerinendptEnabler
WSWS2004I: IBM WebSphere Application Server Release 5
WSWS2005I: Web Services Enterprise Archive Endpoint Enabler Tool.
WSWS2007I: (C) COPYRIGHT International Business Machines Corp. 1997,
2003.
WSWS2006I: Please enter the name of your EAR file: WSWholesale1EAR.ear
WSWS2003I: Backing up EAR file to: WSWholesale1EAR.ear~
WSWS2016I: Loading EAR file: WSWholesale1EAR.ear
WSWS2017I: Found EJB Module: WSWholesale1EJB.jar
WSWS2029I: Enter http router name for EJB Module WSWholesale1EJB
[WSWholesale1EJB_HTTPRouter.war]: WSWholesale1EJB_HTTPRouter.war
WSWS2030I: Enter http context root for EJB Module WSWholesale1EJB
[/WSWholesale1EJB]: Wholesale1
WSWS2024I: Adding http router for EJB Module WSWholesale1EJB.jar.
WSWS2036I: Saving EAR file WSWholesale1EAR.ear...
WSWS2037I: Finished saving the EAR file.
WSWS2018I: Finished processing EAR file WSWholesale1EAR.ear.