Another alternative would be to write new EIP patterns
to be able to re-route flows wrt to errors / faults.
See this thread for example:
 
http://www.nabble.com/Declarative-Exception-Handling-in-ServiceMix-tf2161788.html#a6658179

However nothing has been implemented yet in servicemix.

Another option would be to use an EndointChooser with an
org.apache.servicemix.jbi.event.ExchangeListener.  You should be
able to intercept all errors / faults and act accordingly.

Note that the JBICOntainer.resendExchange may be useful to resend
a failed exchange.

I'm not quite sure yet what the best way is: a flow / broker or
using components.  The first one is nice because you can do
the failover without changing the exchange flow, but it will be
difficult to use in a std JBI way (with SU deployments).  I guess
we could use some SU metadata in the jbi descriptor to setup
some advanced stuff.  This would also benefit other areas like
security, etc ...

On 10/31/06, lipkap <[EMAIL PROTECTED]> wrote:

Hi,

I am planning to do transparent failover when routing message exchanges by
service name.

Say I have three endpoints (A, B, C) for service
{http://some.service.com/}SomeService, all of which are outbound proxy kind
of endpoints (i.e. they proxy an external service instance). Each of them
proxies to an instance of the same service but on a different machine.

I want to implement transparent failover and loadbalancing between the
instances inside the JBI container. Could anyone plz point me to a place in
code where I could put this functionality.

Load balancing is easy (there's a pluggable strategy interface called
EndpointChooser whoch allows you to do that). With failover it is somewhat
more difficult.

For now the choice is to write a custom Flow implementation or a custom
Broker implementation. The options are numerous so I decided to post here in
case anyone has any cool ideas.

thanks in advance.
--
View this message in context: 
http://www.nabble.com/Transparent-failover-when-routing-message-exchanges-tf2544462.html#a7089893
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to