|Re: Spring MVC - Register New Controllers programatically [message #987743 is a reply to message #987729]
||Tue, 27 November 2012 21:11
| Eduardo Frazão
Registered: January 2012
Hi Dmitry! Thanks by your help!|
How can snaps run with Spring MVC? In that case, I can only have one Dispatcher Servlet right?
My major problem, is that I need to register and unregister controllers.
The only way I found to implement it, is adding the controllers to the WebBundle application context, and Subclass DefaultAnnotationHandlerMapping, to invoke a protected method that searches for Controllers on the Context.
To unregister, I need to unregister the Controllers from context, refresh.
I dont like this approach .
Is Virgo Snaps aware of SpringMVC, and can it automate discovery of new controllers to the main Dispatcher servlet? Or I can create one dispatcher per snap, as totally independent application?
Sorry by the ammount of questions !
Powered by FUDForum
. Page generated in 0.03076 seconds