May 15, 2010, 8:52 a.m.
posted by max
Processing Layer DesignThe processing layer is where the business logic is applied to a Web service request. Recall that Web service is an interoperable way to expose new or existing applications. Hence, regardless of the means you use to expose your application's functionality, the business logic design issues are the same. You must still design the business logic by considering such issues as using enterprise beans, exposing a local or a remote EJB interface model, using container-managed or bean-managed persistence, and so forth.
We do not address these business logic design issues here, since much of this discussion has already been covered in the book Designing Enterprise Applications with the J2EETM Platform, Second Edition, and you can refer to that book for general guidelines and recommendations. You should also refer to the BluePrints Web site at http://java.sun.com/blueprints for recommendations on designing an application's business processing logic. In addition to these general guidelines, there are some specific issues to keep in mind when designing the processing layer of a Web service.
Keep in mind that your processing logic can operate on the contents of an XML document received from a client. Refer to "Handling XML Documents in a Web Service" on page 105, which highlights issues to consider when you pass XML documents to your business processing logic. Depending on your application scenario, your processing layer may be required to work with other Web service peers to complete a client's request. If so, your processing layer effectively becomes a client of another Web service. Refer to Chapter 5 for guidelines on Web service clients. In other circumstances, your processing layer may have to interact with EISs. For these cases, refer to Chapter 6 for guidelines. |
- Comment