Search code examples
javaweb-servicesstreamingjax-wsmtom

What does parseEagerly mean in MTOM's @StreamingAttachment (Metro)


Somebody please explain the behavior of @StreamingAttachment(parseEagerly=true). What are the advantages/disadvantages when its enabled/disabled? Couldn't find any detailed documentation.


Solution

  • Configure such that the whole MIME message is parsed eagerly

    • true means that the destination should wait until the attachment is fully recieved, and saved to disk, and then it can proceed with the webmethod's business logic.
    • false means the opposite, so there is no waiting before entering the webmethod itself.

    Feel free to make refinements to this answer.