...
- Events are used for validation and conversion using map processor, while services are used for business logic like CRUD operation
- Service returns mapMap
- Event returns String.
- Services are loaded with the server, any changes in defintion definition (not implementation if in MiniLang) need needs a reload
- We can call service inside event. But we cannot call event inside service.
- An event is specific local piece functionality normally used in one place for one purpose and called from its location.
- A service is a piece of functionality which can be located anywhere on the network, is most of time used in several different places and is called by its 'name'
- In case of events you have access to HttpServletRequest and HttpServletResponse objects and you can read/write whatever you want. In case of services, you have access only to service parameters.