-
Nov 10th, 2011, 05:58 PM
#1
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
-
Nov 11th, 2011, 01:36 AM
#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...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules