Sorry if I have misunderstood the post

I think I have done the same thing:

----create one SA containing one SU
my update profile SA contains http provider SU to which I have to send
message.

----create another SA containing one SU which use the component of the first
SU
my error handler SA uses the http provider from update profile. 

Here I have not set any dependency or anything but I am sending the message
to http provider in updateprofile just by reading the header

----In the same way, using Camel (and implementing recipient EIP), you
can have one SU using two SUs from different SAs. 
 
I am using camel component in errorhandler to send message to http provider
in update profile.


This is what I have done:
 
In update profile:

from("jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorConsumerService";)
        .setHeader(ErrorConstants.APPLICATION_NAME,
                
constant("jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorService";))
        .intercept(new CustomDelegateProcessor())         
       
.to("jbi:service:http://servicemix.in2m.com/operations/updateprofile/DirectorService?mep=in-out";);

In Error handler:

from("jbi:service:http://servicemix.in2m.com/operations/errorhandler/TransformedMessageRoutingService";)
                .intercept(new CustomDelegateProcessor())
        
.recipientList(header(ErrorConstants.APPLICATION_NAME).append("?mep=in-out"));

Am I right?
Or have I mistaken it?

I know there is a work around for this to create an http provider in
errorhandler and then while setting header set it as
"jbi:service:http://servicemix.in2m.com/operations/errorhandler/DirectorService";

But this wont be a good project design and hence I don't want to do that.

Please help?


-- 
View this message in context: 
http://www.nabble.com/How-can-I-refer-two-SAs--tp20087902p20297667.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to