I need to use GWT with a service-based domain layer - not beans with DAOs. Is the GWT 2.1 architecture with MVP and RequestFactory fitted for this? Or should I stay with RPC?
Thanks
I need to use GWT with a service-based domain layer - not beans with DAOs. Is the GWT 2.1 architecture with MVP and RequestFactory fitted for this? Or should I stay with RPC?
Thanks
GWT 2.1.1 adds a
Locator
andServiceLocator
mechanism to allow you to control how the RequestFactory server code obtains references to entities and service object instances.For example, you can declare code like
If you need even more control over how RequestFactory interacts with your server domain objects or service code, you can inject instances of
ServiceLayerDecorator
into the service layer.