Created
February 27, 2020 19:34
-
-
Save forketyfork/e9cb951c6ca5fc1e007304b8f5a98d6b to your computer and use it in GitHub Desktop.
XA with Spring Boot: XaRoute
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 XaRoute extends RouteBuilder { | |
@Override | |
public void configure() { | |
from("activemq:TestQueue") | |
.transacted("policyPropagationRequired") | |
.to("sql:insert into message(contents) values(:#${body})") | |
.log("Delay...") | |
.delay(10000) | |
.log("Delay finished, committing"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment