3

Spring MVC allows for multiple DispatcherServlets. However, I can't find single case when using multiple DispatcherServlets is more useful than single instance. Could you provide a scenario in which multiple DispatcherServlets have advantage over single instance?

M. Deinum
  • 115,695
  • 22
  • 220
  • 224
Marcin Szymczak
  • 11,199
  • 5
  • 55
  • 63
  • 5
    Strictly seperating user and admin functionality. Or one for plain Spring MVC and another for Spring Web Flow. If there are major configuration differences for some controllers. (We actually used the Spring MVC and Spring Web Flow seperation so that we could add this without affecting the already exising configs). Nowadays with servlet 3.0 you could develop seperate parts of your application seperatly and have all of them contribute there own `DispatcherServlet` and mappings (although you could also achieve this with some configuration conventions). – M. Deinum Aug 25 '14 at 09:00

0 Answers0