@MTOM.enabled is ignored for a web service in EAP 6

Solution Unverified - Updated -

Issue

  • The javax.xml.ws.soap.MTOM annotation documentation descibes threshold value as follows:
    > public abstract int threshold
    > Property for MTOM threshold value. When MTOM is enabled, binary data above this size in bytes will be XOP encoded or sent as attachment. The value of this property MUST always be >= 0. Default value is 0.
  • The key sequence is: "When MTOM is enabled".
  • But the parameter works even if MTOM is disabled. In other words, when I disable the annotation, MTOM is still working if threshold is smaller than the file.
  • So when a big arrays of binaries are attached as MTOM message to SOAP, it is incomprehensible for some kind of web service providers.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.