Is it possible to change from endpoint in dynamic way ?
for example I want change
for(endpointFirst).routeId(ROUTEID).to(finishEndpoint);
to
for(endpointSecond).routeId(ROUTEID).to(finishEndpoint);
I try use
camelContext.stopRoute(TestRoute.ROUTEID);
change old endpoint to new endpoint
camelContext.startRoute(TestRoute.ROUTEID);
but my efforts not work properly.
thanks for any help
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…