Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
EsperThe Esper component supports the Esper Library for Event Stream Processing. The camel-esper library is provided by the Camel Extra project which hosts all *GPL related components for Camel. URI formatesper:name[?options] When consuming from an Esper endpoint you must specify a pattern or eql statement to query the event stream. Pattern example: from("esper://cheese?pattern=every event=MyEvent(bar=5)") .to("activemq:Foo"); EQL example: from("esper://esper-dom?eql=insert into DomStream select * from org.w3c.dom.Document") .to("log://esper-dom?level=INFO"); from("esper://esper-dom?eql=select childNodes from DomStream") .to("mock:results"); Options
You can append query options to the URI in the following format, EsperMessageFrom Camel 2.12 onwards the esper consumer stores new and old events in the EventBean newEvent = exchange.getIn(EsperMessage.class).getNewEvent(); EventBean oldEvent = exchange.getIn(EsperMessage.class).getOldEvent(); By default if you get the body of DemoThere is a demo which shows how to work with ActiveMQ, Camel and Esper in the Camel Extra project |