Creating asynchronous events in spring
java, spring, spring-mvc
Solution
In this case it will be perfect to use Spring integration. which gives a different kinds of messaging solutions.
Here is a little explanation about Event-Driven Consumer:
And here is an example in Spring integration that is relevant to your needs:
- Messaging Endpoints
- some more examples
Good luck!
Problem
I was looking at using spring 3.1 for publishing events and using listeners to consume these events. however I have read that these events are synchronous, is it possible to make them asynchronous, maybe use the @async annotation? Im really looking at creating an event driven architecture in Java/Spring - publishing and consuming events, would you think Spring/Java would suffice?