Currently I am using axon_1.2.1 to develop an application. From the
document I noticed that Axon supports asynchronous event handlers.
The set up seems to be simple by using Annotation. However no matter
what I tried, it seems to be not working.
Here is what I do. I annotate one of my event handle class as:
@Component
@AsynchronousEventListener(sequencingPolicyClass =
FullConcurrencyPolicy.class)
public class ProfileSetEventHandler
{
}
I got "no executor" error on AsynchronousEventListener. By checking
the axon source code, it seems to me that
"AnnotationEventListenerBeanPostProcessor" needs to inject an
Executor. I added the injection in the Spring Context xml file to
the AnnotationEventListenerBeanPostProcessor bean. No working. And
I noticed that