-
1. Re: Only one route allowed per Java DSL
splatch Jun 11, 2012 7:32 AM (in response to erhard)Hey Erhard,
This limitation is introduced to keep clean relation between service interface and mediation behind the scenes, because every implementation.camel must be linked with interface. You are right that references are good practice in this case, instead of direct: you can use switchyard:// in uri. If you would like to have multiple entry points to service you can use different bindings (as you have JMS component).
-
2. Re: Only one route allowed per Java DSL
erhard Jan 5, 2014 10:05 AM (in response to erhard)The feature was implemented in Switchyard 1.0.0. This works now :
public void configure() {
from("switchyard://Greeter")
.log(LoggingLevel.INFO,
"Received message for 'Greeter' : ${body}")
.to("direct:ep1")
.to("file:testdir");
from("direct:ep1")
.log("Hit direct endpoint")
.to("switchyard://SaveService");
}
}