cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <>
Subject Re: MTOM only when dealing with operations that have attachments
Date Thu, 09 Apr 2015 01:01:22 GMT

> On Apr 8, 2015, at 8:00 PM, Jason Pell <> wrote:
> If MTOM is enabled, its enabled for all operations, even those which have
> no need for it.  Is this part of the standard, or would it be possible to
> be smarter about when to enable it?
> Ideally only operations that accept / return attachments should have MTOM
> enabled (at least if this particular configuration was possible via a
> property)
> I already have a local hack to allow clients to disable mtom completely via
> an accept header.  But wanted your thoughts before I introduce another hack
> into our code, if a cleaner solution would be acceptable into cxf.

The issue is determining which operations can accept/return MTOM and which cannot.   I think
mtom-enabled is a contextual property (if it isn’t, it could be) that COULD be set on a
per-operation level.    It’s just a matter of getting it set when appropriate.

Daniel Kulp -
Talend Community Coder -

View raw message