Service Methods for Backend Calls |
For SAP apps, the service calls RFCs and converts their proxy data into biz model objects. The service class should be a subclass of SAPServiceSupport which provides methods to call the back end and process errors.
For Hibernate apps, the service calls the daos to get biz objects and performs whatever biz logic is necessary on them.
The service spring beans are configured in applicationContext.xml (not in action-servlet.xml).
As long as the application service extends SAPServiceSupport which is in mortar, it does not have to handle error messages because the superclass handles them. See ApplicationResources for documentation on the error handling.