Web Services for J2EE
With the advent of J2EE 1.4, Web Services are now an integral part of J2EE. This section examines at a high level how Web Services fit with the J2EE model and how they can be used with J2EE components.
J2EE Web Service Architecture
J2EE can can be both a provider and consumer of Web Services. Figure 20.2 shows the overall architecture, with business logic being provided by EJBs (although other classes could be used). The functionality offered by the business components will be described by a WSDL document (or similar), and this can then be used to build clients that use this functionality.
Figure 20.2. Overall J2EE Web Service architecture.
SOAP RPC calls will be handled by a router component based around a servlet. This ...
Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.