1

I have recently started with Apache Camel so apologies if this questions is silly.

I have 2 processes A and B, and each process has an endpoint E1 and E2 respectively. Now let's imagine that I need to create a process C and that process B has to die. Can I migrate E2 to C and connect it through a route to E1 in process A?

It is important to notice that A, B and C may be in different machines as well.

I google for process migration in Camel, but all I found were articles referring to JBoss Fuse:

So, the question naturally arrives, is it even possible to do it with Apache Camel? If yes, how ? Can you provide some example or documentation?

Thanks in advance.

Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266

1 Answers1

0

You can use the load-balancer pattern in camel to model the scenario.

Hussain Pirosha
  • 1,358
  • 1
  • 11
  • 19
  • I don't get it, the load balancer doesn't seem to do what I want :S Thanks anyway! – Flame_Phoenix Oct 19 '13 at 14:39
  • What I meant was that using the loadbalancer's failover construct you can construct a route something like in process A : java.lang.Exception .Failover shall only happen when there comes an exception reaching processB.There is 1 more pattern that you can look into is [dynamic-router](http://camel.apache.org/dynamic-router.html), you can have a bean decide what next endpoint to route the message. – Hussain Pirosha Oct 20 '13 at 12:02
  • I will search on that solution better. Thanks ! – Flame_Phoenix Oct 21 '13 at 10:46