Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Netbeans

...

  • To unsubscribe You certainly forgot how you subscribed, it's easy to forgot if you use one a Nabble forum to subscribe.

...

More at Really easy field validation
A tip from Atul Vani

Anchor
DifferenceBetweenEventAndService
DifferenceBetweenEventAndService

What is the difference between Event and Service?

  • Events are used for validation and conversion using map processor, while services are used for business logic like CRUD operation
  • Service returns map
  • Event returns String.
  • Services are loaded with the server, any changes in defintion (not implementation if in MiniLang) need 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.