title: Spring, Reactor and @Consumer
body: <p>I have a Spring Boot project that uses reactor for asynchronous tasks. I have began the task of upgrading the project to Spring Boot 1.3.1. As a side effect, it appears that it's using a new version of reactor. I am trying to figure out how to get it to work with the new reactor. I was using the @Consumer and @Selector annotations to tell it what classes and methods to use for an event like so:</p>
  
  <pre><code>@Consumer
  public class MyReceiver {
  
    @Selector(value = "someEvent", reactor = "@rootReactor")
    public void receiveEvent(SomeObject someObject) {
      ...
    }
  
  }
  </code></pre>
  
  <p>I was previously notifying the receiver by doing this in a service class:</p>
  
  <pre><code>@Autowired
  Reactor rootReactor;
  
  public void someMethod() {
    ...
    rootReactor.notify("someEvent", Event.wrap(someObject));
  }
  </code></pre>
  
  <p>I have figured out that I need to change the rootReactor stuff to this:</p>
  
  <pre><code>@Autowired
  EventBus eventBus;
  
  public void someMethod() {
    ...
    eventBus.notify("someEvent", Event.wrap(someObject));
  }
  </code></pre>
  
  <p>But I'm not sure what I need to do on the consumer side. @Selector no longer supports the reactor attribute, so you can change it to eventBus, but what is the detault event bus named now? When I tried @Selector with ONLY the value attribute I started getting an NPE. </p>