users@jax-ws.java.net

Re: enable-mtom value at runtime

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Tue, 18 Apr 2006 10:37:46 -0700

You can use binding id in @BindingType annotation to enable mtom binding
on the endpoint implementor class:

@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING)

or

@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING)


Similarly you can disable mtom using:

@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP+"?mtom=false")

or

@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP+"?mtom=false")


Please note that, if deployment descriptor overrides any runtime
setting, so if the DD has enable-mtom attribute that enables/disables
mtom, it overrides any runtime mtom setting.

-vivek.

Florian Rengers wrote:
> Hi,
>
> is it possible to get and and set the "enable-mtom" property of a
> JAX-WS service at runtime like it is possible with the
> "mtom-threshold-value"?
>
> Florian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>

-- 
Vivek Pandey
Web Services Technologies and Standards
Sun Microsystems Inc.