How to use a SipServlet with Spring such as the available on http://www.javaworld.com/article/2071781/java-web-development/sip-programming-for-the-java-developer.html?page=2 ?
I'm using Spring MVC
to map HTTP requests so for any given function I can use the annotation @RequestMapping
. Is there any way to map the requests like spring MVC?
To summarize: From where can I start to implement a SIP endpoint in my current Spring project that already serves as a HTTP endpoint?
You can't use
Spring MVC
for yourSIP
handling code. Spring'sDispatcherServlet
extendsHTTPServlet
, and does not handleSIP
calls. You will have to implementSIPServlet
's methods yourself and register the servlet properly with the app, either withsip.xml
or SIP annotations. You still can utilize Spring Framework in your service layer.