Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3080

[7.2.x] Development guide - useage of Spring beans with request scope in RESTEasy

XMLWordPrintable

      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

              snelluli@redhat.com Sreelatha Nelluli
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: