Announcement Announcement Module
Collapse
No announcement yet.
Legacy java code and spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Legacy java code and spring

    Hi All,

    We have a legacy system developed using plain jsp, servlets and pure JDBC. Now we are planning to develop a new module for this existing application and we thought to use spring JDBC layouts instead of pure JDBC and introduce more flexible layered architecture.

    Our initial plan to have a Presentation layer with pure jsp and servlet controllers, Spring service layer and spring DAO layer. So we could use servlet controller to call Service objects and then DAO objects.

    What do you guys think about this? Can you please help us to improve this Layered structure? Any suggestions?

    Thanks
    Kelum

  • #2
    You can have the Controller's -> Business Delegate -> Service layer ->DAO so that the controllers remain simple.

    where controller only knows about the model and the view to be shown, Delegate doing the task of conversion of Business objects to value objects vice versa and delegating to the service and the service inturn calling the DAO.

    -Hetal

    Comment

    Working...
    X