[英]Apache camel browse queue without polling it
I need to log my database with events on my ActiveMQ. 我需要使用ActiveMQ上的事件记录数据库。 With logging I mean messages can't be consumed. 通过日志记录,我的意思是无法使用消息。
Is the folowwing thing possible 下列事情可能吗
public class QueueRouteBuilder extends RouteBuilder {
@Override
public void configure(){
from("browse:activemq:KBC)
.process(new QueueProcessor());
}
}
That camel route is event driven. 骆驼路线是事件驱动的。 Ie it has to somehow poll events of that queue to know whats been dealt with. 即,它必须以某种方式轮询该队列的事件以知道处理了什么。
I would, instead, go for copies to a queue used for logging. 相反,我会将副本复制到用于日志记录的队列中。 This can be done in two ways with ActiveMQ. 使用ActiveMQ可以通过两种方式完成此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.