after further digging i have found the use of AOP within messaging.
Particularly the following pointcut on the producer send. It looks like what i need.
does seem to be the correct place to define custom audit functionality?
Yes you could add your own interceptor (aspecy) on the server aop stack.
Take a look at the aspects that already exist e.g. SecurityAspect for an idea of how to do this.
ok so i can use the following conf to add an audit aspect.
<bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.SessionAdvised->send(..))"> <advice name="auditMessage" aspect="org.jboss.jms.server.container.AuditAspect"/> </bind>
now i guess this is system wide and not configurable to an individual queue basis.
I would like some reassurance that this is indeed the most useful mechanism to audit the messageQ.
But you can inspect the parameters to get the destination.