Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{snippet:id=e1|lang=java|url=activemq/camel/trunk/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamHeaderTest.java}

This sample demonstrates how to continously read a file stream such as the Unix tail command:

Code Block
java
java

from("stream:file?fileName=/server/logs/server.log?scanStream=true&scanStreamDelay=1000").to("bean:logService?method=parseLogLine");
Include Page
CAMEL:Endpoint See Also
CAMEL:Endpoint See Also