Spring WS with Axiom: JAXB is inlining MTOM attachments
问题 I have webservices to receive and send attachments, and I'd like to use JAXB as marshaller, but so far it is not working right, as JAXB inlines any attachment coming in or going out in the message body as base64 strings, consuming a lot of memory and frequently leading to OutOfMemoryError. I'm outlining my setup and fix attempts, and hope someone can help me get it right. Axiom is my choice over SAAJ as message factory, as I have to handle big attachments. I can successfully use JAXB as a