Hi All,

Each Message Forwarding Processor must have a target endpoint. At the
moment we configure this target endpoint by adding a property in the
in-sequence of proxy service as follows.

<property name="target.endpoint" value="StockQuoteServiceEp" />

IMO, this way of associating target-endpoint with Message Forwarding
Processor is not only error prone but also less readable. Therefore, I
think we can improve configuring target endpoint by making it at an
attribute of the Message Forwarding Processor as follows,

<messageProcessor class=
"org.apache.synapse.message.processors.forward.ScheduledMessageForwardingProcessor"
name="ScheduledProcessor" messageStore="MyStore"
*targetEndpoint="StockQuoteServiceEp"*> <parameter name="interval">10000</
parameter> <parameter name="max.deliver.attempts">3</parameter> <parameter
name="max.deliver.drop">true</parameter> </messageProcessor>

WDYT ?

Reply via email to