Multicast
is kind of different problem solver. It belongs only to ongoing flow. It just means that message from that point will be propagated to other components unchanged and in parallel behavior. Opposite is Pipeline
component.
I think, what do you want is a seda
component. Opposite to seda
is direct
component. If you send a message to direct
it will flow trough and start another flow only when the first ends. If you send a message to seda
it will start a new flow every time it receive a message. You can define flow/thread pool and some other parameters how to behave.
So your camel config would look like this:
from("esper:xxx").to("seda:process");