This content has been marked as final.
Show 4 replies
-
1. Re: persisting messages for audit
lpiccoli Jul 31, 2007 1:11 AM (in response to lpiccoli)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?
-lp -
2. Re: persisting messages for audit
timfox Jul 31, 2007 6:04 PM (in response to lpiccoli)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. -
3. Re: persisting messages for audit
lpiccoli Aug 1, 2007 11:28 PM (in response to lpiccoli)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.
thanks
-lp -
4. Re: persisting messages for audit
timfox Aug 8, 2007 2:37 PM (in response to lpiccoli)But you can inspect the parameters to get the destination.