Thank you for your reply, unfortunately I had to switch to a more pressing project, so it will be some time before I have a chance to test this.
Thank you, Florin 2009/10/20 Ruwan Linton <[email protected]> > Yes, Hiranya is correct on this... > > The clone mediator target mediates the message using the specified sequence > and then send the message using the specified endpoint. > > So you shouldn't try to send the message in the target sequence. > > Thanks, > Ruwan > > On Tue, Oct 20, 2009 at 7:40 PM, Hiranya Jayathilaka > <[email protected]>wrote: > > > On Tue, Oct 20, 2009 at 1:41 PM, Florin Bejinaru > > <[email protected]>wrote: > > > > > The Error I am getting is : > > > > > > 2009-10-20 00:33:50,308 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] > > ERROR > > > ClientUtils The system cannot infer the transport information from the > > > /services/Event URL. > > > 2009-10-20 00:33:50,312 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] > > ERROR > > > Axis2Sender Unexpected error during sending message out > > > org.apache.axis2.AxisFault: The system cannot infer the transport > > > information from the /services/Event URL. > > > > > > which I don't get if I set the "to" attribute on the target element. > > > > > > > Looking at the source code of the CloneMediator and the Target class, I > > can't see why this approach doesn't work. It should work without any > > issues. > > Here's the relevant code segment from the Taget class. > > > > *if (sequence != null) { > > synCtx.getEnvironment().injectAsync(synCtx, sequence); > > } else if (sequenceRef != null) { > > SequenceMediator refSequence = (SequenceMediator) > > synCtx.getSequence(sequenceRef); > > if (refSequence != null) { > > synCtx.getEnvironment().injectAsync(synCtx, refSequence); > > } > > } else if (endpoint != null) { > > endpoint.send(synCtx); > > } else if (endpointRef != null) { > > Endpoint epr = > > synCtx.getConfiguration().getEndpoint(endpointRef); > > if (epr != null) { > > epr.send(synCtx); > > } > > }* > > > > Can you please verify that Synapse doesn't send any messages to the > > endpoint > > you have specified? Note that when an endpoint is refered by the target > it > > tries to send the message to that endpoint. Therefore putting a send > > mediator in the clone mediator target is not required and that could even > > cause issues. May be the clone mediator actually sends messages to the > > specified endpoint and what is failing is the send mediator which tries > to > > send the message to the 'To' address set in the message. > > > > Thanks, > > Hiranya > > > > > > -- > > Hiranya Jayathilaka > > Software Engineer; > > WSO2 Inc.; http://wso2.org > > E-mail: [email protected]; Mobile: +94 77 633 3491 > > Blog: http://techfeast-hiranya.blogspot.com > > > > > > -- > Ruwan Linton > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb > WSO2 Inc.; http://wso2.org > email: [email protected]; cell: +94 77 341 3097 > blog: http://ruwansblog.blogspot.com >
