Results 1 to 3 of 3

Thread: Migrating Servlet to Portlet Web Application

  1. #1

    Question 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. #2
    Join Date
    Sep 2004
    Location
    Arizona, USA
    Posts
    383

    Default

    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!

  3. #3

    Default 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •