Handler not being subscribed . . . why?

I am writing a small demonstration app using the Axon event bus
(1.1.2). It is a Spring 3 app.
For some reason my handler is not subscribing to the bus. Any ideas?
Thanks. Eric

applicationContext:

. . .
         <axon:event-bus id="eventBus"/>

         <bean
class="org.axonframework.eventhandling.annotation.AnnotationEventListenerBeanPostProcessor">
      <property name="eventBus" ref="eventBus"/>
      <property name="executor" ref="taskExecutor"/>
    </bean>

    <bean id="taskExecutor"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
             <property name="corePoolSize" value="2"/>
             <property name="maxPoolSize" value="5"/>
             <property name="waitForTasksToCompleteOnShutdown"
value="true"/>
  </bean>

. . .

handler:

@AsynchronousEventListener
public class ExampleHandler {

  @EventHandler
  public void onExampleEvent(ExampleEvent event) {

    try {
      FileWriter fw = new FileWriter("log.txt", true);
      fw.write(event.getText());
      fw.close();
    }
    catch (IOException e) {
      e.printStackTrace();
    }

  }
}

event generator:

  @Autowired
  SimpleEventBus eventBus;

. . .

  public void sendExampleEvent(String color, String shape) {
    ExampleEvent event = new ExampleEvent();
    event.setText(color + " " + shape);
    eventBus.publish(event);
  }

Hi Eric,

Your ExampleHandler needs to be registered as a bean in Spring so that
AnnotationEventListenerBeanPostProcessor can find the annotated
methods. So following your example above you'd need this in your
context file:

<bean class="...ExampleHandler" />

On another note, since you're using the @Autowired annotation you
might be interested in looking into the other Spring 3 annotations and
component-scan to make your wiring easier -- and less/no XML
configuration files. Just refer to chapter 3.10 "Classpath scanning
and managed components" in the Spring manual.

Seamus

Thanks! I will check out your suggestion.