spring, jaxws and session scope beans

Remember kids, if you’re using com.sun.xml.ws.transport.http.servlet.WSSpringServlet to have spring and jaxws webservices, you can’t use things like scope=”session” on your beans. At least, not without adding a listener to your web.xml…

    <listener>
        <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
    </listener>

Listener not required if you’re using spring’s regular DispatcherServlet

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>