use of org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy in project wildfly-camel by wildfly-extras.
the class SimpleRouteBuilder method configure.
@Override
public void configure() throws Exception {
getContext().setNameStrategy(new ExplicitCamelContextNameStrategy("simple-camel-context"));
from("direct:start").bean("helloBean");
}
use of org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy in project wildfly-camel by wildfly-extras.
the class MailCdiRouteBuilder method configure.
@Override
public void configure() throws Exception {
getContext().setNameStrategy(new ExplicitCamelContextNameStrategy("camel-mail-cdi-context"));
from("direct:start").to("smtp://localhost:10025?session=#mailSession");
from("pop3://user2@localhost:10110?delay=30000&session=#mailSession&delete=true").to("mock:result");
}
use of org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy in project wildfly-camel by wildfly-extras.
the class HealthRouteBuilder method configure.
@Override
public void configure() throws Exception {
getContext().setNameStrategy(new ExplicitCamelContextNameStrategy("health-context"));
from("direct:start").to("log:end");
}
use of org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy in project wildfly-camel by wildfly-extras.
the class SecureRouteBuilder method configure.
@Override
public void configure() throws Exception {
getContext().setNameStrategy(new ExplicitCamelContextNameStrategy("secured-context"));
from("direct:start").policy(new DomainAuthorizationPolicy().roles("Role2")).transform(body().prepend("Hello "));
}
use of org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy in project wildfly-camel by wildfly-extras.
the class MyRouteConfiguration method route.
@Override
public RouteBuilder route() {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
getContext().setNameStrategy(new ExplicitCamelContextNameStrategy("javaConfigContext"));
from("direct:start").transform(body().prepend("Hello "));
}
};
}
Aggregations