activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Stover" <bxsto...@yahoo.co.uk>
Subject SpringXML intercption of consumer connects and consumer msg retrievals possible?
Date Wed, 01 Sep 2010 13:50:29 GMT
As you know Spring offers a mechanism called Interceptors which triggers a user bean whenever
a certain interface call is issued internally

Spring configuration go similar to:

<bean id="idMyPointcut"   class="org.springframework.aop.support.JdkRegexpMethodPointcut">
    <property name="pattern" value=".*aop.myBe.*" />
  </bean>

<bean id="idMyAdvice" class="sampleaop.MyMethodInterceptor" />

  <bean class="org.springframework.aop.support.DefaultPointcutAdvisor">
    <property name="advice"   ref="idMyAdvice" />
    <property name="pointcut" ref="idMyPointcut" />
  </bean>

Is something similar within ActiveMQ?

I am particularly interested in intercepting call when consumers retrieve msgs from a queue.

Ben












Mime
View raw message