I am unsure which approach I should take in order to express the following route as a Java DSL.
This is part of a password reset function with an email being sent out. 1. Consume a client rest call from the web via a rest URL 2. Do the reset stuff in the database 2a. Return OK to the Rest calling user 2b. Send the reset mail to a velocity template and then to the smtp component Initially I tough of something like this, but result of the approach below is the veolicty text content both to my rest call and to my email recipient. from("seda:sendNewPassword") .to("bean:UserRouterHandler?method=prepareResetEmail") .to("velocity:EmailReset.vm") .to("smtp:smtp.hesbynett.no"); from("restlet:/myApp/rest/users/{email}/reset_password?restletMethod=POST") .multicast().parallelProcessing() .to("bean:UserRouterHandler?method=directRespond", "seda:sendNewPassword"); The "directRespond" methof on the bean UserRouterHandler only copies the excahnge in Body to the out Body. As I read from the documentation the Exchange is still sharing the exchange object between the paths for the route, so I am obviously choosing the wrong approach here. Can anyone point me in the right direction? -- View this message in context: http://camel.465427.n5.nabble.com/Which-strategy-should-I-use-Rest-Email-tp5724382.html Sent from the Camel - Users mailing list archive at Nabble.com.