[英]Camel netty consumer not listen
我在為514
端口設置camel
netty
使用者時遇到問題,以捕獲syslog
消息。 我的route
:
from("netty:udp://127.0.0.1:514?sync=false")
.process(new Processor(){
public void process(Exchange exchange) throws Exception {
processor.processAntyMalwareLog(exchange);
}
}).log("I've got message");
應用程序正在啟動:
Route: route3 started and consuming from: Endpoint[udp://127.0.0.1:514]
和514
端口已打開但未在監聽
>netstat -lnp | grep 514
udp6 0 0 127.0.0.1:514 :::* 21513/java
我可以看到tcpdump
使用tcpdump -i eth1 -nn -A -s 0 port 514 and udp
的消息正在發送和接收正常。
誰能指出我在哪里做錯了?
您需要使用客戶端模式,例如set clientMode=true
。 在netty文檔中查看更多詳細信息:
並盡可能升級並使用Netty 4:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.