Results 1 to 3 of 3

Thread: DispatchServlet and multiple xml configuration files

  1. #1
    Join Date
    Aug 2004
    Location
    France - Saint Nazaire
    Posts
    79

    Default DispatchServlet and multiple xml configuration files

    Hello,

    I want to Spring MVC and other layers ( services, dao ). How can I separate configurations of presentation elements, business services element and dao/persistence elements into several xml configuration files? and how can I configure the DispatchServlet to use these xml files?
    Thanks for your help,
    Thierry

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    In your web.xml you will have to specify a location for the contexts you're using (except for the XXX-servlet.xml, which will contain your web-related beans). Also, you'll have to add a ContextLoaderListener or ContextLoaderServlet. Using the two you can spread your beans across as many files as you like .

    Have a look at section 3.15 (Creating an ApplicationContext...) of the reference manual, you will find more info there.

    Alef

  3. #3
    Join Date
    Aug 2004
    Location
    France - Saint Nazaire
    Posts
    79

    Default DispatchServlet and multiple xml configuration files

    Thanks a lot for help
    Thierry

Posting Permissions

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