MessageContext Persistance is causing inlined attachments + Performance concerns
--------------------------------------------------------------------------------
Key: AXIS2-3130
URL: https://issues.apache.org/jira/browse/AXIS2-3130
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.4
Reporter: Rich Scheuerle
Assignee: Rich Scheuerle
Summary:
When the MessageContext is persisted, it writes out its message (soapenvelope).
Unfortunately, if there are attachments associated with the message, these are
always
inlined in the xml of the message. The code must be changed to respect the
optimize settings.
In addition, the current code buffers the Message multiple times.
This is a performance and footprint concern.
---------------------
Solution Details:
1) Message Serialization is logically different than the rest of the Message
Context
Serialization. I wrote a new class, MessageExternalizeUtils, to separate the
logic.
2) The new MessageExternalizeUtils class uses the same logic as the transport
layer to read
and write the message (for example it uses the transport MessageFormatter to
write the message). This
corrects the attachment inlining problem.
3) MessageExternalizeUtils does not build a buffer containing the entire
message. Instead,
the message is written/read in chunks. This will improve performance and
footprint for large messages.
4) The externalization format syntax is clearly defined in the
MessageExternalizeUtils class. I have
added debug trace and javadocs.
I am testing my fix now. I will contribute it soon
Thanks,
Rich
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]