MTOM Default threshold

Moderators: Site Manager, fjwalraven

Post Reply
mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

MTOM Default threshold

Post by mujahed » Thu Oct 30, 2014 3:34 am

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

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

Re: MTOM Default threshold

Post by fjwalraven » Thu Oct 30, 2014 4:14 am

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

mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

Re: MTOM Default threshold

Post by mujahed » Thu Oct 30, 2014 6:43 am

Thank you very much, your answer is very helpful.

Regards,
Mujahed

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests