Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services > Assembling web services applications > Assembling web services applications
Enable an EAR file for EJB modules that contain web services
When your EAR file contains enterprise JavaBeans (EJB) modules that contain Web services, run the endptEnabler command-line tool or an assembly tool before deployment to produce a web services endpoint WAR fiile. Assemble an enterprise JAR file that is enabled for web services from an enterprise bean. The enterprise JAR file is an artifact that is required to build the EAR file.
We can add router modules to the application that is enabled for web services with either the endptEnabler command-line tool or with assembly tools provided with WAS. The tool that you choose to use for this task depends on your preference to work with a command-line tool or a graphical user interface. See the assembly tools documentation to learn how to use assembly tool to accomplish this task.
These tools add one or more router modules to the EAR file for each web service-enabled enterprise JavaBeans (EJB) module contained in the EAR file. A router module provides an endpoint for the web service in a particular EJB module.
You should not modify the contents of the EJB module or the web module that was generated using the endptEnablercommand-line tool. If you do, an error occurs during run time. The following is an example of the error that displays:
"Error]- WSWS3142E: Error: Could not find web services engine.]: javax.servlet.ServletException: WSWS3142E: Error: Could not find web services engine."Each router module supports a specific transport such as HTTP or JMS. If no enterprise bean JAR modules are located in the EAR file, it is not necessary to use these tools.
Procedure
Enable an EAR file with the endptEnabler command-line tool. In its interactive mode, the endptEnabler command guides you through the required steps to enable one or more services within an application.
What to do next
Deploy the EAR file into WAS. An assembled EAR file that is enabled for web services is required for deployment.
Related
Enable an EAR file for web services with the endptEnabler command
Assembly tools
Deploy web services applications onto application servers
Assembling web services applications
Related
endptEnabler command