On Tuesday, April 17, 2012 04:23:22 PM jaybytez wrote:
> Is there a simple way or feature where you could set a flag to not log out
> the DataHandler or the Attachments XOP/MTOM creates?
> 
> We are using the LoggingIn(Out)Interceptor to log our messages in all our
> envs, but some of our services send significant sized attachments via MTOM
> and it would be nice to be able to exclude those from logging.

When you configure the LoggingInInterceptor (and likely the out), do the 
equivalent of:

LoggingInInterceptor in = new LoggingInInterceptor();
in.addAfter(AttachmentInInterceptor.class.getName());
endpoint.getInInterceptors().add(in);

which should move the LoggingInInterceptor to after the attachment handling.  
Thus, only the "root" part would get logged.

Dan


> 
> Thanks...
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/LoggingIn-Out-Interceptor-disable-DataHan
> dler-logging-tp5647852p5647852.html Sent from the cxf-user mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to