Why did you suggest to use use that when the exchange is sent by the consumer
the first time. Because in my case it will be different.
I also have to use it when message is sent by provider.
The message is like this
1)Listener will listen to all the messages on NMR
2)app1 sends message to app2 say <request><message>hello</message></request>
3)app2 will respond with either success or error
The response can be <response><status>success</status></response> or it can
be <response><status>error</status></response>
Now my listener should take the "in" message as well as "out" message from
app2 append them and send the appended message to the Error handler for
further processing.
that is listener should send message
<message><request><message>hello</message></request><response><status>error</status></response></message>
to service " {http://servicemix.abc.com/samples/http}MyErrorHandlingService
"with endpoint "errorHandlerProviderEndpoint"
I have achieved the message
<message><request><message>hello</message></request><response><status>error</status></response></message>
Now how to send it?
Pratibha
--
View this message in context:
http://www.nabble.com/How-to-route-message-from-a-listener--tp17483625p17527388.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.