title: Session and request scopes with Spring WebFlux
body: <p>Currently experimenting reactive programming with <strong>Spring Boot 2.0.0.M4</strong>, <strong>Spring 5.0.0.RC4</strong> and <strong>Reactor 3.1.0.RC1</strong>.</p>
  
  <p>Injecting a @RequestScope or @SessionScope bean into a WebFlux REST controller fails at runtime:</p>
  
  <pre><code>java.lang.IllegalStateException: No Scope registered for scope name 'request'
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:342) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
      at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) ~[spring-aop-5.0.0.RC4.jar:5.0.0.RC4]
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) ~[spring-aop-5.0.0.RC4.jar:5.0.0.RC4]
      at com.adeliosys.scope.Counter$$EnhancerBySpringCGLIB$$7dce0361.increment(&lt;generated&gt;) ~[classes/:na]
      at com.adeliosys.scope.Controller.getQuote(Controller.java:25) ~[classes/:na] // line with theScopedBean.doSometing() call in the REST controller
      (...)
  </code></pre>
  
  <p>The blocking equivalent with Spring Web MVC works fine.</p>
  
  <p>I understand that reactive programming messes with thread locals, but <strong>is request or session scoped beans injection supported by WebFlux</strong> ?</p>
  
  <p>If not, is this planed ?</p>
  
  <p>Thank you for your time.</p>