[esb-java-dev] Logging
Ruwan Linton
ruwan at wso2.com
Tue Mar 31 07:51:46 PDT 2009
Hi Basher,
I think usage of the message id for this purpose is not the correct
approach for this scenario. Assuming that this queue is an internal Java
queue which stores the message context object you could use a property
with a given name to associate the request and the response, so in the
response flow these properties will be copied to the response.
If you are storing these messages as SOAP or XML messages in a JMS queue
or any other external queue I propose you to use a custom SOAP header to
keep the information about the request / response association. In this
particular case you will need to add the value for the response message
before reporting to the queue, well same with the request I guess. You
could still use a property to correlate the request and the response in
the synapse flow.
Thanks,
Ruwan
Kattubadi Basher Ahamed wrote:
> HI,
> I am designing Logging frame work in ESB.
> My requirement is from ESB I will send request and reply to one Queue, and another flow called audit flow picks the request and response from that Queue for particular client request/response and merge together and put into Audit queue.
> For synchronous call I can provide same message id for request and reply and audit flow can picks the message from the queue with similar messageid messages and merge together.
> In case of Asynchronous message how we will maintain similar messageid for both request and reply.
>
> Or is there any suggestion to handle this or any other design you propose.
>
> Please reply .
>
> Thanks in advance
> Basher
> _______________________________________________
> Esb-java-dev mailing list
> Esb-java-dev at wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
>
>
--
Ruwan Linton
Senior Software Engineer & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan at wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com
More information about the Esb-java-dev
mailing list