本文介绍了jms消息拦截器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
反正有没有拦截去往/来自Java应用程序和activeMQ队列的消息?
Is there anyway to intercept messages going to/from a java app and an activeMQ queue?
我可以使用任何开源实用程序吗?
Any opensource utilities I can avail of?
谢谢达米安(Damien)
ThanksDamien
推荐答案
您可以使用面向方面的编程.
You can use aspect-oriented programming.
但这确实引出了一个问题:您为什么要这样做?记录,监视,警报?这些都是AOP可以解决的跨领域问题.
But it does beg the question: why would you want to do this? Logging, monitoring, alerting? Those are all cross-cutting concerns that AOP can address.
这篇关于jms消息拦截器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!