Nov 10th, 2011, 05:58 PM
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?
Nov 11th, 2011, 01:36 AM
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...
Tags for this Thread