overdueEndpoint = resolveMandatoryEndpoint("mock:overdue", MockEndpoint.class);
overdueEndpoint.setDefaulResultWaitMillis(8000);
}
protected RouteBuilder createRouteBuilder() throws Exception {
JpaTemplate jpaTemplate = getMandatoryBean(JpaTemplate.class, "jpaTemplate");
TransactionTemplate transactionTemplate = getMandatoryBean(TransactionTemplate.class, "transactionTemplate");
// START SNIPPET: example
return new ProcessBuilder(jpaTemplate, transactionTemplate) {
public void configure() throws Exception {