I'm studying Sip Servlet and there is something that it's not clear to me.
With an application server like mobicents, I could have two type of session:
SipSession
: is the session linked to the request/response;SipApplicationSession
: is the session that wrapSipSession
and (eventually)HttpSession
. This should be used to communicate between the web and sip servlet.
Why should we have the second one? If I call:
getServletContext.setAttribute("something", somethingObject);
is this shared with the two servlets, or am I wrong?
The ServletContext
is something that wraps the servlet in an application, and so we can communicate across the servlets.
So why should we use SipApplicationSession
?
Thanks for answering.