Web / Apache OFBiz Interview questions
What is a dispatcher in OFBiz?
A dispatcher (LocalDispatcher) is the entry point used to invoke services. Where a delegator talks to the Entity Engine, a dispatcher talks to the Service Engine via dispatcher.runSync(...) or dispatcher.runAsync(...).
The dispatcher resolves the service name against its definition in a *Services.xml file, validates the incoming parameter map, applies any required permission checks, starts a transaction if the service requests one, runs the implementation, and fires any matching SECA rules.
Like the delegator, the dispatcher is normally pulled from the current request or service context rather than created manually, keeping every service call in an application consistent.
More Related questions...