Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
See previous ticket about try .. catch.
I altered the route a bit a I wanted to add a log EIP after the bean inside the doTry. But the source code was renderer with <log> inside the <bean> element
<camelContext xmlns="http://camel.apache.org/schema/spring" trace="false"> <route id="route2"> <from uri="activemq:foo"/> <doTry> <bean method="myMethod" ref="myBean"> <log logName="myFile" message="Processing done"/> </bean> <doCatch> <exception>java.io.IOException</exception> <to uri="file:io-error"/> </doCatch> </doTry> </route> </camelContext>
And the log EIP is not visible in the outline. The correct solution should be
<bean method="myMethod" ref="myBean"/> <log logName="myFile" message="Processing done"/>