camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From newbiee <m_ess...@hotmail.com>
Subject converting form JAVA DSL to Spring DSL
Date Mon, 21 Nov 2011 17:55:36 GMT
I have following JAVA DSL:

from("timer://myTimer?period=2000")
.setBody().simple("Current time is ${header.firedTime}")
.to("stream:out");

how can I converted the first and third lines to Spring DSL:

	<from uri="timer://myTimer?fixedRate=true&amp;period=2000" />

	<to uri="stream:out"/>

How can I convert .setBody().simple("Current time is ${header.firedTime}")
to Spring DSL.

Thanks


--
View this message in context: http://camel.465427.n5.nabble.com/converting-form-JAVA-DSL-to-Spring-DSL-tp5011220p5011220.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message