I am using the combination of spring, spring-security, struts and iBatis in my application. Now I am looking to migrate the struts UI to GWT.
The new combination must be spring, spring-security, GWT and iBatis.
I applied a layered approach to develop my application. In Controller/UI layer i am using Struts. I want to replace struts and use GWT in Controller/UI layer.
Is is possible to use GWT without affecting another layers DAO/BL/SL?
5
The short answer is: Yes, you can.
The problem is how to do it, as you will probably need a rewrite of your presentation layer and I don’t think there is any tool that can help you easy up the migration.
2
Well, yes, sure you can. Just make sure that the classes used in your frameworks are on the GWT white list. What that means in practice is:
-
Decide on the version of GWT you’ll use in your project. If no constrains exist, use the latest.
-
Decide the versions of the other frameworks as well.
- Decide which of the classes from those frameworks will be used in the CLIENT side code of your GWT project
Finally, if you arrive in a situation where certiain classes that come from your framework(s) will not be directly usable in GWT client code, there’s multiple solutions:
- check out if there’s not already a “bridge” library/framework that deals with this issue (like Gilead for Hibernate)
- if you have to do it by hand, explore the options (by maybe doing a small proof of concept): either implement a custom serialization policy, or make a DTO layer, etc.