Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
consumer.url=jpa://samples.camel.model.Address?consumeDelete=false
producer.url=file:target/test?allowNullBody=true&fileExist=append
@Component
public class DbRouteBuilder extends RouteBuilder {
@Value("${consumer.url}")
private String consumerUrl;
@Value("${producer.url}")
private String producerUrl;
@Override
public void configure() throws Exception {
from(consumerUrl)
.log(LoggingLevel.TRACE, "Processing ${id}")
//.bean(new AddressBean(), "log")
.marshal().json()
.to(producerUrl);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment