61727

When do we need multiple Dispatcher Servlet?

Question:

In which scenarios, we need multiple Dispatcher Servlets? Can anyone please tell me the use cases of multiple Dispatcher Servlets. I think every use case can be solved by using single Dispatcher Servlet.

Answer1:

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

Recommend

  • Resize and scale HTML5 Canvas and contents
  • Clean up PHP/HTML pages
  • JFrame attached on the side of another JFrame
  • PHP function error and success pattern
  • Getting wrong values for other columns when I select MAX(updated_date)
  • Trying to get mvc resources to serve my static resources
  • MVC - Dynamically loading Partial Views
  • Rewrite part of javascript with C#
  • Routing in WCF data services
  • Grails/Roo for a .Net developer
  • Mod rewrite redirection to another domain if file not exist
  • How to bind comma separated list of values to List
  • Why is django manage.py syncdb failing to create new columns on my development server?
  • Configuring multiple DefaultJmslistenercontainerfactory
  • How can I let users share their location in Bot Framework webchat channel?
  • Streaming screenshots over WebRTC as a video stream from iOS
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • Runtime.exec() gives Error: Could not find or load main class
  • Configure nginx to return different files to different authenticated users with the same URI
  • Mixing WebForms and MVC: What should I do with the MasterPage?
  • HttpURLConnection Closing IO Streams
  • How to 'create temp table as select' in Slick?
  • How to override value that appears in a dropdown in the rails_admin gem
  • hide missing dates from x-axis ggplot2
  • quiver not drawing arrows just lots of blue, matlab
  • JPA flush vs commit
  • as3-flash: any way to access all the instances placed in different frames from document class?
  • What is the purpose of TaskExecutor in spring?
  • Parsing a CSV string while ignoring commas inside the individual columns
  • Webgrid not refreshing after delete MVC
  • How to use carriage return with multiple line?
  • MVC3 Razor - ListBox pre-select not working
  • Cancel a live stream “fast motion” catch-up in Flash
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • QLineEdit password safety
  • Is there a mandatory requirement to switch app.yaml?
  • Busy indicator not showing up in wpf window [duplicate]
  • UserPrincipal.Current returns apppool on IIS
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF