admin管理员组文章数量:1122846
I have a java application that uses Apache-Camel and Guice. I am trying to upgrade from Apache-camel v2 to v3 for JDK17 support. I see camel-guice package was deprecated and removed from camel 3. I am mainly extending CamelModuleWithMatchingRoutes to bind my route builders. How can I migrate to v3 while using Guice?
public class MyModule extends CamelModuleWithMatchingRoutes {
@Override
protected void configure() {
super.configure();
bind(routeBuilder1.class);
bind(routeBuilder2.class);
}
}
Checked migration guidelines but there were no mention of Guice deprecation or how to migrate Guice applications. .html
I have a java application that uses Apache-Camel and Guice. I am trying to upgrade from Apache-camel v2 to v3 for JDK17 support. I see camel-guice package was deprecated and removed from camel 3. I am mainly extending CamelModuleWithMatchingRoutes to bind my route builders. How can I migrate to v3 while using Guice?
public class MyModule extends CamelModuleWithMatchingRoutes {
@Override
protected void configure() {
super.configure();
bind(routeBuilder1.class);
bind(routeBuilder2.class);
}
}
Checked migration guidelines but there were no mention of Guice deprecation or how to migrate Guice applications. https://camel.apache.org/manual/camel-3-migration-guide.html
Share Improve this question asked Nov 22, 2024 at 10:53 Ahmed AmeenAhmed Ameen 11 Answer
Reset to default 0There is no out of the box camel-guice component anymore. You need to migrate to something else such as Spring Boot or Quarkus. And you should jump to Camel v4, as v3 is EOL by end of this year.
本文标签: Use ApacheCamel 3 with GuiceStack Overflow
版权声明:本文标题:Use Apache-Camel 3 with Guice - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304270a1932175.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论