Apache Camel - Build both from and to endpoints dynamically
问题 I have a camel route which processes a message from a process queue and sends it to upload queue . from("activemq:queue:process" ).routeId("activemq_processqueue") .process(exchange -> { SomeImpl impl = new SomeImpl(); impl.process(exchange); }) .to(ExchangePattern.InOnly, "activemq:queue:upload"); In impl.process I am populating an Id and destination server path . Now I need to define a new route which consumes messages from upload queue ,and copy a local folder (based on Id generated in