1 Reply Latest reply on Nov 26, 2007 10:18 AM by Thomas Diesler

    How to disable HTTP session creation?

    Mikael Larsson Newbie

      Hi!

      First of all, is an http session always created for each ws request?
      Second, how can I disable (or reconfigure timeout of) the http session object if it is implicitly created for each WS request?

      According to http://jira.jboss.com/jira/browse/JBWS-1179 a session was always created for each request but according to the checkin comments this was fixed with "Delay creation of HttpSession until it is actually used", so, what will actually trigger this http session to be created.
      Is it only created if I would try to get the http session from the MessageContext?

      I just want to make sure that I do not create a lot of http session objects in my app. I'm exposing web services that are completely stateless and I do not want to create an http session for each ws request (due to the high request rate).

      Regards
      /Mikael