alderaan
alderaan

Reputation: 23

Spring MVC: in which situation would be useful to have several DispatcherServlet - Contexts?

Spring MVC documentation says that it is possible to have several DispatcherServlets in a Web application, each one would have a separate context. I wonder in which situation this would be useful? Also, why separated contexts? Could someone give some insight about this?

Thx in advance.

Upvotes: 1

Views: 167

Answers (2)

Saurabh
Saurabh

Reputation: 1406

Please follow this question.

Can I use Spring MVC and Spring WS in one single application?

This should answer your question.

Please follow another question

Spring - When should I consider loading another context in same JVM?

This should answer your second question.

Upvotes: 0

Harini
Harini

Reputation: 105

Yea, Its possible to have several Dispatcher Servlet, Say for example in one of my project I m using Json, Ibatis and normal spring configuration. For each one I m using each dispatcher servlet. But the main dispatcher servlet would be one in which other two would be included. Its just for convinient.

Upvotes: 0

Related Questions