기술이라고 하기에 많이 부족하지만
해당글에는 앞으로 반말을 사용해야겠습니다.
이유는
http://blog.outsider.ne.kr/831
http://akngs.tumblr.com/post/29967547275
http://www.richis.org/html/research/treatise/a08.pdf
상기 블로그에도 이야기하드시 문장이 좀더 명료하게 간결해진다는 것 때문입니다.
이해해 주세요. ^^
고맙습니다.
기술이라고 하기에 많이 부족하지만
해당글에는 앞으로 반말을 사용해야겠습니다.
이유는
http://blog.outsider.ne.kr/831
http://akngs.tumblr.com/post/29967547275
http://www.richis.org/html/research/treatise/a08.pdf
상기 블로그에도 이야기하드시 문장이 좀더 명료하게 간결해진다는 것 때문입니다.
이해해 주세요. ^^
고맙습니다.
camel 로 개발을 하고 있는데
http://camel.apache.org/http.html 의 예제를 보면
Sample with scheduled poll
The sample polls the Google homepage every 10 seconds and write the page to the file message.html
:
from("timer: //foo?fixedRate=true&delay=0&period=10000") .to("http: //www.google.com") .setHeader(FileComponent.HEADER_FILE_NAME, "message.html").to("file:target/google"); |
라는 예제가 있는데
FileComponent.HEADER_FILE_NAME 라는 구문을 입력하니
해당 constant 를 찾을수 없다는 에러가 난다.
인터넷을 검색해보니 해당constant 는 org.apache.camel.Exchange 로 옯겼다고 한다.
Camel 2.0 이상을 사용한다면 Exchange.FILE_NAME으로 사용하면 된다.
https://issues.apache.org/jira/browse/CAMEL-1733
그리고 하나더
setHeader(Exchange.FILE_NAME, "report.txt") 로 바꾸고 나서도
The methid setHeader(String, Expression) in the type ProcessorDefinition<RouteDefinition> is not applicable for the arguments (String, String)
이라는 에러가 난다.
이것은
setHeader(Exchange.FILE_NAME, constant("report.txt")) 로 바꿔주면 된다.
http://camel.apache.org/file2.html
고맙습니다.