I think I see where the issue might be - we're assuming that the
mtom-enabled property is a Boolean, not a String. As a temporary workaround
you can try this:

<jaxws:properties>
 <entry key="mtom-enabled">
   <bean class="java.lang.Boolean
"><constructor-arg><value>true</value></constructor-arg></bean>
 </entry>
</jaxws:properties>

I'll fix this in SVN as well! (BTW its a "-" not a "_" in the mtom-enabled
property)

- Dan

On 4/17/07, Christopher Moesel <[EMAIL PROTECTED]> wrote:

I am attempting to MTOM-enable my CXF service.

I am using the CXFServlet and Spring configuration.

I have added the following as a child of the <jaxws:endpoint> element in
the spring config file:

<jaxws:properties>
  <entry key="mtom_enabled" value="true"/>
</jaxws:properties>

Although my service seems to accept MTOM/XOP requests just fine, it
doesn't seem to be using MTOM for the reponses.  Is the spring
configuration above enough, or do I need to do something else?  Is there
a size threshold that needs to be exceeded in order for the response to
use MTOM?

I looked in the samples, but the sample MTOM project does not use Spring
configuration.

Thanks,
Chris




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

Reply via email to