[ https://issues.apache.org/jira/browse/SYNAPSE-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604152#action_12604152 ]
Ruwan Linton commented on SYNAPSE-357: -------------------------------------- You cannot check that and take the decision because if there is an error handler defined in the sequence this logic is not going to work. This is because if the sending process failed then the message is handed back to the error handler, in which case even though the send mediator is the last mediator in the chain envelope might be used in the error handler. At the same time, since this behavior affects the performance I would like to keep this as configurable to the administrator who configures the product. > Provide a switch to send mediator to specify whether to build the envelope > before sending or not > ------------------------------------------------------------------------------------------------- > > Key: SYNAPSE-357 > URL: https://issues.apache.org/jira/browse/SYNAPSE-357 > Project: Synapse > Issue Type: Improvement > Components: Core > Affects Versions: 1.2 > Environment: all env > Reporter: Ruwan Linton > Assignee: Ruwan Linton > > Just before the 1.2 release we did a perf improvement where the envelope of > the message being sent will not be built and use the serializeAndConsume > method to achieve better performance. > But when you are using this approach in sending messages you cannot do > anything with the envelope after sending the message out. For example you > cannnot log the message after sending it out. There fore it is worth in > adding a switch to the Send mediator to specify the envelope building > behavior. -- 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]