[
https://issues.apache.org/jira/browse/CAMEL-14296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
michael elbaz updated CAMEL-14296:
----------------------------------
Description:
I can't use adviceWith with camel 3
{code:java}
@Override
@Before
public void setUp() throws Exception {
// Init...
super.setUp();
AdviceWithRouteBuilder.adviceWith(context(), "id", adviceWithRouteBuilder
-> {
adviceWithRouteBuilder.replaceFromWith("timer:foo");
});
}
{code}
I see endpoint replacement but the context shutdown immediately
was:
I can't use adviceWith with camel 3
{code:java}
@Override
@Before
public void setUp() throws Exception {
// Init...
super.setUp();
AdviceWithRouteBuilder.adviceWith(context(), "id", adviceWithRouteBuilder
-> {
adviceWithRouteBuilder.replaceFromWith("timer:foo");
});
}
{code}
I see uri replacement but the context shutdown immediately
> Camel advice with
> -----------------
>
> Key: CAMEL-14296
> URL: https://issues.apache.org/jira/browse/CAMEL-14296
> Project: Camel
> Issue Type: Bug
> Components: camel-test
> Affects Versions: 3.0.0
> Reporter: michael elbaz
> Priority: Critical
>
> I can't use adviceWith with camel 3
> {code:java}
> @Override
> @Before
> public void setUp() throws Exception {
> // Init...
> super.setUp();
> AdviceWithRouteBuilder.adviceWith(context(), "id",
> adviceWithRouteBuilder -> {
> adviceWithRouteBuilder.replaceFromWith("timer:foo");
> });
> }
> {code}
> I see endpoint replacement but the context shutdown immediately
--
This message was sent by Atlassian Jira
(v8.3.4#803005)