Hi erverybody,
i have a little problem with exceptionhandling.
Since i'm new to activeMq/Camel sorry if the question is trivial...
I try to build a route with java DSL. My route looks like this:
....
public void configure() {
from("jms:fileIn?transacted=true")
.onException(UnmarshalException.class)
.handled(true)
.bean(FileProcessExceptionBean.class,"handleException")
.end()
.id("fileMapping")
.transacted()
.process(new FileProcessor())
.to("jms:fileOut");
}
My problem is that in jConsole my Route is labeled "Route1" ( resp. Route2,
Route3 etc).
When i remove the onExecption-section my route gets labeled correctly like
with .id() specified.
When I move the onException-section to after .transcated(true) then the
route gets labeled correctly, but the onException-section will ALWAYS be
run, even if there was no Exception thrown.
Any ideas ?
GeneralInfo:
Apache Camel 2.1-SNAPSHOT (build 20091022) , Java 1.6.0, Linux
--
View this message in context:
http://www.nabble.com/RouteBuilder%3A-Problems-with-onException-and-id-tp26024958p26024958.html
Sent from the Camel - Users mailing list archive at Nabble.com.