cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse" <...@envoisolutions.com>
Subject Re: Questions While Implementing MTOM Policy
Date Mon, 23 Apr 2007 14:54:17 GMT
On 4/23/07, Sergey Beryozkin <sergey.beryozkin@iona.com> wrote:
>
> By the way, the issue Chris is trying to solve (finding out if the MTOM
> policy expression was set as optional or not) is the real issue for the
> client runtime.
> MTOM interceptor on the client side can check if it's required, if yes,
> then use MTOM, if not, then consider whether to use it or not anyway by
> checking the size of the outgoing message against the default or
> preconfigured value, etc... This is will be a no client configuration story
> (for MTOM)...


Its not possible to check the size of the outgoing message or even just the
attachment. The DataHandler API doesn't expose it (and nor does the JAXB
AttachmentMarhsaller APIs), so on the Client side, its all or nothing.

- Dan


-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message