Web Services for J2EE

At the time of writing, Web Services are not an integral part of J2EE. However, the overall intention and roadmap has been laid out. This section examines how Web Services fit with the J2EE model and how they can be used with J2EE components.

J2EE Web Service Architecture

J2EE will 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 ...

Get Sams Teach Yourself J2EE™ in 21 Days now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.