onException() in Camel DSL component does not called when Exception occurs in JPA Reference Binding
Issue
There is a SwitchYard service like this:
[camel DSL component] -- [JPA Reference Binding]
In the Camel component, onException() is coded like this
public void configure() {
onException(Throwable.class).log(LoggingLevel.INFO, "***** catch Exception in the camel route *****");
from("switchyard://PeriodicService").log(
"Received message for 'PeriodicService' : ${body}").to("switchyard://StoreService").log("done");
}
Interface for the JPA Reference Binding is like this
void storeGreeting(Greet event);
Although Exception relating with SQL occurs in JPA Reference Binding, onException() is never invoked.
Environment
-
Red Hat JBoss Fuse Service Works
- 6.x
-
Red Hat JBoss Fuse
- 6.2.1
- SwitchYard
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.