return SpringCamelContext.springCamelContext(applicationContext);
}
@Override
protected RouteBuilder createRouteBuilder() {
return new SpringRouteBuilder() {
public void configure() {
Tracer tracer = new Tracer();
tracer.setDestinationUri("jpa://" + JpaTraceEventMessage.class.getName() + "?persistenceUnit=trace");
tracer.setUseJpa(true);
getContext().addInterceptStrategy(tracer);