Last active
April 10, 2018 13:46
-
-
Save alexandre-touret/470b84ac760c4f70d093753c63ec153b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
consumer.url=jpa://samples.camel.model.Address?consumeDelete=false | |
producer.url=file:target/test?allowNullBody=true&fileExist=append |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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