I have 2 events basically:
UserCreatedEvent.class And UserUpdatedEvent.class
I have a flow that produces these two events at once (remember this is only an example) Is it possible to make sure (with some configuration) that the 2nd event will be consumed only after the first event will be consumed? (I don't want the update event to be processed before the create event was processed.)
P.S these 2 events are being produced to different queues.
Lastly I would like to point out that i'm using JMSTemplate (spring) for events. with activemq.