Sep 30th, 2008, 10:01 AM
Migrating Servlet to Portlet Web Application
The client planning to build a Spring based Potlet application in Weblogic Portal 10.2.
Due to knowledge/skill set availability; they are proposing a plan of developing pure Servlet based web application with Spring.
And future they want to migrate in to Portlets.
They asked me to come up with plan for this.
I feel it is going to be more as rework kind of (except service and DAO layer), since both are diff API and diff coding methodology.
Please advice me.
Sep 30th, 2008, 06:26 PM
There will be some genuine migration involved since you are correct that the API is different, as are things like handler mapping, URLs, etc.
Things you can do to make this relatively simple:
1) factor as much logic as possible out of the MVC layer. Make sure you push any other kinds of logic into a services layer that can work for both servlets and portlets.
2) Use the new annotation-based controllers introduced in Spring 2.5. These should make porting between Servlets and Portlets even easier since it's mostly just method signatures and mapping that change.
Hope that helps!
Oct 1st, 2008, 07:15 AM
Thank you very much for your input.
I will follow the same and make sure that the migration will be smooth.