Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Resume an Endpoint in a Route

$
0
0
Hi - In the below route, I have interceptors defined which gets invoked
before each of these endpoints to enrich the message.

from {file:location}
to validate
to DBLoad
to processcomplete

My requirement is that validation should complete as soon as file arrives
but file load in Endpoint "DBLoad" should start only at specific time. In
the interceptor code I am able to stop the route just before the DBLoad
endpoint using exchange.setProperty(ROUTE_STOP, Boolean.TRUE);

but how do I resume this validated message from DBLoad endpoint on this same
route using the same exchange which has the file body and other headers set
in it?

Viewing all articles
Browse latest Browse all 5648

Trending Articles