blob: 1d6ce6c3fc2500d7a827ae1d1da620bc1d4dcd0b [file] [log] [blame]
//
// To run this integrations use:
//
// kamel run --runtime kotlin examples/kotlin-routes.kts
//
// Or leveraging runtime detection
//
// kamel run examples/kotlin-routes.kts
//
val rnd = java.util.Random()
from("timer:kotlin?period=1s")
.routeId("kotlin")
.setBody()
.constant("Hello Camel K!")
.process().message {
it.headers["RandomValue"] = rnd.nextInt()
}
.to("log:info?showAll=true&multiline=true")