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

[CD17] 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
              snelluli@redhat.com Sreelatha Nelluli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: