This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new e63db5e CAMEL-8293: camel-test should use Registry and let user bind beans more easily instead of having to use JndiRegistry. e63db5e is described below commit e63db5e883b8d22f27316bbeda671fd18ac72652 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Feb 26 14:09:42 2019 +0100 CAMEL-8293: camel-test should use Registry and let user bind beans more easily instead of having to use JndiRegistry. --- MIGRATION.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index d075daf..e4ec652 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -136,6 +136,14 @@ The class `org.apache.camel.processor.aggregate.AggregationStrategy` has been mo The class `org.apache.camel.processor.loadbalancer.SimpleLoadBalancerSupport` has been removed, instead use `org.apache.camel.processor.loadbalancer.LoadBalancerSupport`. +#### camel-test + +If you are using camel-test and override the `createRegistry` method, for example to register beans from the `JndiRegisty` class, then this is no longer nessasary, and instead +you should just use the `bind` method from the `Registry` API which you can call directly from `CamelContext`, such as: + + context.getRegistry().bind("myId", myBean); + + #### Controlling routes The `startRoute`, `stopRoute`, `suspendRoute`, `resumeRoute`, `getRouteStatus`, and other related methods on `CamelContext` has been moved to the `RouteController` as shown below: