| TOP | PREV | NEXT |
More and more, Web services are used for enterprise application integration. The J2EE platform already provides the Java Connector architecture for enabling components in a J2EE container to access and use resources in enterprise information systems and other legacy systems. A Web service uses the Java Connector architecture capabilities to expose these EIS and legacy resources to other non-J2EE clients.
A Web service for EIS integration can be a synchronous or asynchronous service, and this decision is based on the nature of the service's workflow. The architecture of a Web service providing EIS integration might have a JAX-RPC servlet endpoint to receive the client request. The endpoint delegates the request to the service's business logic, which in turn accesses the EIS or legacy system through the Connector architecture. The business logic formulates a response and the endpoint communicates that response to the client. See Figure 1.13.
Keep in mind that you can combine architectures in any given Web service. For example, you can wrap either a synchronous or asynchronous service around a legacy system or EIS. You can implement a JAX-RPC servlet endpoint to extend existing J2EE applications to expose a Web service interface. The servlet endpoint uses an application's existing business logic for processing client requests.