You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jeremy Boynes <jb...@apache.org> on 2006/03/05 17:54:27 UTC
Does the webservice EP servlet need to create a HttpSession?
In WebServiceEntryPointServlet:
private static SessionContext
getSessionContext(HttpServletRequest httpServletRequest) {
HttpSession httpSession = httpServletRequest.getSession(true);
This forces a session to be created so that a Axis2 SessionContext
object can be associated with it. Creating a session adds quite a lot of
overhead for a web container especially in distributed configurations.
Is this something that Axis2 requires or is there a way to defer this
until some operation actually requires it?
--
Jeremy
Re: Does the webservice EP servlet need to create a HttpSession?
Posted by Davanum Srinivas <da...@gmail.com>.
Yes, this can be deferred. Please log a bug report (patch would be
even better :)
-- dims
On 3/5/06, Jeremy Boynes <jb...@apache.org> wrote:
> In WebServiceEntryPointServlet:
> private static SessionContext
> getSessionContext(HttpServletRequest httpServletRequest) {
> HttpSession httpSession = httpServletRequest.getSession(true);
>
> This forces a session to be created so that a Axis2 SessionContext
> object can be associated with it. Creating a session adds quite a lot of
> overhead for a web container especially in distributed configurations.
>
> Is this something that Axis2 requires or is there a way to defer this
> until some operation actually requires it?
>
> --
> Jeremy
>
--
Davanum Srinivas : http://wso2.com/blogs/