Skip to content

Commit

Permalink
with file persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
pierangeloc committed Jul 12, 2015
1 parent 176bfd4 commit ec3b524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/sytac/edu/routes/SimpleRouteBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class SimpleRouteBuilder extends RouteBuilder {
public void configure() throws Exception {
from("cxfrs:bean:restInventory")
.routeId("restInventoryRoute")
.to("file:///tmp/inventory?fileName=inventory-${date:now:yyyyMMdd@HHmmssSS}.json")
.setBody(constant(new Response("Ok", "stock update received")));
}
}

0 comments on commit ec3b524

Please sign in to comment.