Hi Nick
Instead of using your mediator to send the incoming message to its
ultimate target, you could let it flow through rules specified on the
configuration, and use the custom mediator to invoke a new message
exchange that you want to handle - e.g. for message enrichment before
you forward the original request to its ultimate destination.
Right now you cannot use Synapse to split a message into two by
configuration - but you could achieve the same result by using
SynapseEnvironment.injectMessage() to inject a new message into Synapse
for mediation, through your custom mediator. This would behave as if a
new message came into Synapse.
Hope this helps, let me know if you need any help to do this..
unfortunately we do not have a sample that we ship to show this
asankha
Nick Cook wrote:
I want to set up a custom synapse mediator where I send an incoming
message to its ultimate target and also create a new message which
send the new message to some other service end point.
I thought I could use SynapseEnvironment to create a new message
context in the mediator and then send both messages through the
environment. But this does not work.
Does anyone have any clues how I might start a new message exchange
from with a mediator, while also maintaining the mediated message
exchange.
Thanks
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]