Page 1 of 1

MTOM Default threshold

Posted: Thu Oct 30, 2014 3:34 am
by mujahed
Hi,

I had a doubt about Default MTOM threshold, in this link https://jax-ws.java.net/jax-ws-21-ea1/d ... vs_In-line it states "JAXWS implementation has set a threshold of 1KB of byte[] size." so i thought it is 1kb, but if we check section 2.4.1 How to specify MTOM data Threshold it states "Default threshold value for MTOM feature is 0 bytes. "

So can you please let me know the default? or is it the case i misunderstood the concept?

Thanks.
Mujahed

Re: MTOM Default threshold

Posted: Thu Oct 30, 2014 4:14 am
by fjwalraven
Hi Mujahed,

Good question!

The default threshold is 0 bytes.

Java EE6 is based on JAX-WS v2.2 (http://www.oracle.com/technetwork/java/ ... 55512.html)

If you download JSR224 (JAX-WS 2.2) you will find the following phrase:
The MTOMFeature has one property threshold, that can be configured to serve as a hint for which binary data SHOULD be sent as an attachment. The threshold is the size in bytes that binary data SHOULD be in order to be sent as an attachment. The threshold MUST not be negative. The default value is 0.
The page you are referring to is probably outdated.

Regards,
Frits

Re: MTOM Default threshold

Posted: Thu Oct 30, 2014 6:43 am
by mujahed
Thank you very much, your answer is very helpful.

Regards,
Mujahed