Hi Ruwan,

What you propose is right. I was thinking on that, precisely.

Thanks for all,

Jose

Ruwan Linton <[EMAIL PROTECTED]> escribió: Hi Jose,

Since you are writing a custom mediator by your self, I can suggest the
following workaround to correlate the response to the request uniquely;

You can generate a messageID by calling the UUIDGenerator.getUUID(); and set
as a property with a constant key and this property will be available in the
out message as well since we copy the message context properties from in
message to out message.

msgCtx.setProperty("CUSTOM_ID", UUIDGenerator.getUUID());

and on the out path you can retrieve this property by calling the;

msgCtx.getProperty("CUSTOM_ID");

I think this will solve your problem. (You can even use script mediator with
groovy to embed the same java code and execute without compiling, as your
custom mediator)

I agree there is an issue with handling the messageID and we will fix this
ASAP, just after the 1.1.1 release of synapse.

If this does not solves your problem please let me know...

Thanks,
Ruwan

On Jan 28, 2008 5:06 PM, Jose Luis Alba  wrote:

> So here it goes,
>
> Synapse => Service (Before sending)
> INFO LogMediator To: http://localhost:8080/synapse/router/sample02, From:
> 127.0.0.1, WSAction: urn:echo, SOAPAction: urn:echo, Direction: request,
> Envelope: Omitted for brevity
>
> Synapse => Service (After sending)
> INFO LogMediator To: http://localhost:8080/synapse/router/sample02,
> From: 127.0.0.1, WSAction: urn:echo, SOAPAction: urn:echo, Direction:
> request, Envelope: Omitted for brevity
>
> Service => Synapse (Response)
> INFO LogMediator To: http://www.w3.org/2005/08/addressing/anonymous,
> WSAction: , SOAPAction: , MessageID:
> urn:uuid:7E461818D630DA4417127668712635271313762662, Direction:
> response, Envelope: Ommitted for brevity
>
>
>
> Jose
>
>
>
>
>
> ______________________________________________
> ¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo!
> Respuestas http://es.answers.yahoo.com/info/welcome
>



-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"


       
---------------------------------

¿Con Mascota por primera vez? - Sé un mejor Amigo
Entra en Yahoo! Respuestas.
  

Reply via email to