-
Bug
-
Resolution: Done
-
Major
-
7.0.0.ER4, 7.2.0.GA
There should be described useage of Spring beans with request scope in RESTEasy in development guide, in Chapter 16. RESTEasy/Spring integration.
Example of this bean defined in applicationContext.xml:
<bean id="testBean" class="org.jboss.resteasy.core.TestBean" scope="request"> <property name="configured" value="configuredValue"/> </bean>
This bean works correctly only if RequestContextListener is added to web.xml:
<listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener>
Description in Spring documentation http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-factory-scopes-other
- clones
-
JBEAP-3080 [7.2.x] Development guide - useage of Spring beans with request scope in RESTEasy
- Closed
- relates to
-
JBEAP-2975 RESTEasy-Spring is unable to use request-scoped bean defined in xml
- Closed