In the existing webapplication,
my action class receives the request, validates it, hits the DAO,
builds the Value Object (nothing but a bean class), and finally
returns the VO to the action class. This value object is then set into
session and retrieved in JSP page. (Normal request and response model)
To implement GWT in the existing webapp,
1. Using HTTP request to call my action class, convert the value
object in JSON and write it in to response. Access the json in GWT
class and paint the page.
Advantages: i am not breaking my existing architecture, going
through action class.
Disadvantages: Extra round trip to convert value object to json and
vice versa.
2. Using RPC to call service method directly and get the value object
from service directly.
Advantages: I can get my value object with out any extra round
trip.
Disadvantages: Breaking my existing architecture, by calling
service directly (coz scalability might be an issue later, just a
futuristic thought not sure though).
Above 2 approaches has their own adv. & disadv. please guide to choose
the best solution/approach to follow so that GWT can be integrated
successfully without issues.
Thanks,
Ganesh R
Disclaimer:
i am a beginner in GWT! so question can be silly some times :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---