Pratibha,
Didn't you report on the servicemix list that you managed to get the JBI
endpoint name using an interceptor or did I miss something there?
Something like
{http://servicemix.in2m.com/samples/http}jmsConsumer1:consumer1? This
would be the unique endpoint name within the ESB and allthough you need
to reformat it a bit, it does carry all the information you want (the
format is {namespace}service:endpoint). If you need the the target
endpoint, its information should be available from the JBI
MessageExchange's getEndpoint() method (e.g.
messageExchange.getEndpoint().getServiceName() for the namespace and
service and messageExchange.getEndpoint().getEndpointName() for the
endpoint name).
I agree with Claus we should be able to provide access to similar
metadata more easily within Camel, but the interceptor solution should
work fine as temporary solution.
Regards,
Gert
pratibhaG wrote:
I have configuration like this:
exception(java.lang.Throwable.class)
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean3Service?mep=in-out")
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service?mep=in-out");
from("jbi:service:http://servicemix.in2m.com/samples/http/httpConsumer")
.to("validator:updatepassword.xsd")
.to("jbi:service:http://servicemix.in2m.com/samples/http/jmsProviderService?mep=in-only")
.to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service");
from("jbi:service:http://servicemix.in2m.com/samples/http/jmsConsumer")
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService1?mep=in-out")
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService2?mep=in-out");
When I send a message to
"http://servicemix.in2m.com/samples/http/MyProviderService1" or
"http://servicemix.in2m.com/samples/http/MyProviderService2" it may send
Connection Exception and the message moves to
"service:http://servicemix.in2m.com/samples/http/bean3Service".
Now in "service:http://servicemix.in2m.com/samples/http/bean3Service" how
would I know that which service was down, either
"service:http://servicemix.in2m.com/samples/http/MyProviderService1" or
"service:http://servicemix.in2m.com/samples/http/MyProviderService2"?
Please help. I am trying a lot but not getting a way to do this.
-Pratibha