Announcement Announcement Module
Collapse
No announcement yet.
Migrating Servlet to Portlet Web Application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Migrating Servlet to Portlet Web Application

    Hi,

    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.

    Thanks,
    Lakshmi

  • #2
    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!

    Comment


    • #3
      Thanks.

      Hi John,

      Thank you very much for your input.
      I will follow the same and make sure that the migration will be smooth.

      Thanks,
      Lakshmi.

      Comment

      Working...
      X