from("direct:A")
.split(//expression that split msg into two msg M1,M2)
.process(// here processing)
.from("direct:A")
behaves like a java method i.e the thread that calls it will continue to split
.
So what will happen in above case ?
Ley say Thread t1
calls from("direct:A")
then
It enters into .split()
here the msg is divided into two new messages M1
and M2
.
Now from here on-wards will t1
call process()
for M1
and M2
synchronously ?
or
process()
will be called for M1
and M2
in two new thread asynchronously ?