Announcement Announcement Module
Collapse
No announcement yet.
mutiple dispatcher servlet mapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • mutiple dispatcher servlet mapping

    I need to have multiple servlet mappings for separate servlet contexts. The spring doc says

    A web application can define any number of DispatcherServlets. Each servlet will operate in its own namespace, loading its own application context with mappings, handlers, etc. Only the root application context as loaded by ContextLoaderListener, if any, will be shared.


    Is it a best practice? would it load spring container multiple times? would it cause more memory?



    Thanks

  • #2
    No it won't... Each dispatcherservlet will loads its own configuration and reference the context loaded by the ContextLoaderListener as its parent. So it isn't going to reload anything... Unless you do something wrong in your configuration...

    Comment

    Working...
    X