Hello Paul,
If I understand it correctly, now I have to implement
AttachmentMarshaller/Unmarshaller to read/write an attachment and
use ContextResolver//<JAXBContext> to inject my JAXBContext (with
implemented AttachmentMarshaller/Unmarshaller).
But how con I get an attachment (from AttachmentMarshaller/Unmarshaller)?
Could you illuminate please?
> Thus you could add
> support for XOP, as hinted above using JavaMail, or another way is to
> use JAXB [2].
>
I know about AttachmentUnmarshaller, but JAX-WS set it automatically
then MTOM is enabled.
I think that it would be great if JAX-RS do the same when
MessageBodyReader is a JAXBObject.
Yours sincerely,
Dmitry