On Thu, Dec 8, 2011 at 3:28 PM, Castyn <eric.ben...@gmail.com> wrote: > > Raul Kripalani wrote >> >> Once again, if your messages are XML and you want to manipulate >> dateTime types, I suggest you use the standard XPath/XQuery functions. >> It's gonna be simpler and probably faster. >> >> Both the XQuery example or the XPath language (with Saxon as a Factory >> as support for XPath 2.0 is needed) would do the trick. >> >> > > Well, after thinking on what I actually need to do I don't think it will be > that simple. I need to track whenever the last time the route was run. So > basically the route would run such as > > Timer -> get Last Successful Run Time -> Do More Route Stuff -> If > successful, set Last Successful Run Time > > At first I thought a simple delta on a run time would work, but given the > possiblity for errors, needing the ability to set a default Last Run Time > and such, I think it needs to be a bit more complex. I have considered a > singleton on the osgi container that would track the state a bit, but I am > not sure that is the best option here. Still trying to figure out what > route I should go in order to manage this run date. >
Each Camel route is registered in JMX, where you got a number of JMX stats. Of course this is only avail if JMX is not disabled (JMX is enabled by default). You could then query the JMX for the route stats. Just boot up a Camel app, and start jconsole, then you can connect to the Camel app. And then you can browse the JMX tree and see what details you have. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Date-String-Creation-tp5052753p5058954.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/