Results 1 to 4 of 4

Thread: Spring MVC and Spring Dynamic Modules for modularity

  1. #1
    Join Date
    Feb 2010
    Posts
    8

    Default Spring MVC and Spring Dynamic Modules for modularity

    Hi,

    I read lot of articles about Spring Dynamic Modules.

    The situation I'm in is like.

    I'm developing a web based project using Spring MVC and for modularity based approach using Spring Dynamic Modules.

    Now each modules would have its own view pages, dispatcher servlet, config files, controllers and services.

    Using Spring Dynamic Modules and OSGi will it be possible to integrate all the modules together?

    If yes than how can i achieve it ?

    Any input would be of a great help.

    Thank you
    Shekar

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Spring DM helps Spring/IoC applications inside OSGi - the web integration is fairly basic. However you can take a look at dmServer and its Slices project.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Feb 2010
    Posts
    8

    Default

    Hi Costin,

    Thank you very much

    I read about the slices in spring dm server.

    Can i use slices alone without the spring dm server as there is some licensing issue using the spring dm server.

    I want my web applucation to be as in the petclinic example

    http://blog.springsource.com/2009/06...source-slices/

    Can i use only spring dynamic modules and osgi for the web application. Is there any work around?


    Like suppose my application has two modules one is the login module and second is the User module.

    How should the bundles be created than ?

    My login module may have some jsp pages,a application context, a dispatcher servlet, controllers and some business classes.

    Similarly my User module may have some jsp pages,a application context, a dispatcher servlet, controllers and some business classes.

    And i guess i would have only one web.xml file for the whole application

    How can i make the dispatcher servlet of the bundles available in the web.xml file?

    Or

    Is there any better way how the web application should be divided into different bundles

    Any input would be of a great help

    Thank you
    Last edited by thanshena; Apr 7th, 2010 at 01:45 AM. Reason: Had to add more
    Shekar

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    There are various ways to split your applications and it depends a lot on the libraries that you are using. From what you are telling me, Slices sounds like a good solution for your case. Regarding your questions about it, it's best to ask them on the dmServer/Slices forum.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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