THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 | ||||
---|---|---|---|---|
| ||||
from("stream:file?fileName=/server/logs/server.log?scanStream=true&scanStreamDelay=1000").to("bean:logService?method=parseLogLine");
|
Include Page | ||||
---|---|---|---|---|
|