Apache Camel 可以与旧的组件版本集成吗? [英] Can Apache Camel integrate with an old component version?

查看:26
本文介绍了Apache Camel 可以与旧的组件版本集成吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以将旧版本的 Camel 组件与较新的 Apache Camel 版本的应用程序集成.在我的情况下,我想集成到 Hbase 服务器版本 1.2,它仅受 HBase 客户端 1.2 支持.因此,即使我想使用 3.1 Camel 版本,我也想使用 Camel-HBase 组件的 3.0.1 版本.这是一件好事吗?

I wonder if it is possible to integrate an old version of a Camel component, with an application of a newer Apache Camel version. In my case I want to integrate to Hbase server version 1.2, that is supported only with HBase client 1.2. Therefore even though I want to use a 3.1 Camel version, I want to use the 3.0.1 version of Camel-HBase component. Is it a fine thing to do?

或者有什么地方可以看到 Apache Camel 支持的库版本?

Or is there any place that I can see the versions of the libraries Apache Camel supports?

推荐答案

你可以查看Camel dependencies POM,找到不同组件导入的依赖版本.

You can check the Camel dependencies POM to find the versions of dependencies that are imported by the different components.

查看 Camel 3.10 的依赖项 POM.x.你会在里面找到<hbase-version>2.3.1</hbase-version>.

See the dependencies POM of Camel 3.10.x. You will find <hbase-version>2.3.1</hbase-version> in it.

另一个来源是 Maven Central,您可以在其中查看特定 Camel 组件版本的依赖版本.

Another source is Maven Central where you can see the dependency versions of a specific Camel component version.

请参阅 Camel-HBase 3.1.0引用 Hbase-client 1.2.6.

See Camel-HBase 3.1.0 that references Hbase-client 1.2.6.

但是,通常不能选择 Camel 版本来匹配特定的组件依赖版本.一般来说,它是反其道而行之.您想要或必须使用已经存在的版本,或者您想要使用当前版本来充分利用框架.

However, normally one cannot choose the Camel version to match a specific component dependency version. In general it is the other way round. You want or have to work with an already existing version or you want to use a current version to get the best of the framework.

如果您使用 Camel 3.10.x 构建新应用程序,您将获得 2.3.1 版本的 hbase-client.

If you build a new application with Camel 3.10.x, you get the hbase-client in version 2.3.1.

如果较新的 Hbase 客户端版本与 Hbase 1.2 不兼容,则会变得困难.

If newer Hbase client versions are not compatible with Hbase 1.2 it becomes difficult.

  • 混合和匹配 Camel 组件版本时会遇到很多问题
  • 即使您可以使用较旧的 Camel 版本构建应用程序,您也永远无法升级
  • you get lots of problems when you mix and match Camel component versions
  • even if you can build your application with an older Camel version, you could never upgrade

我看到的唯一解决方案是将 Hbase 集成隔离在其自己的(冻结的)应用程序中,使用与您所需的 Hbase 客户端版本相匹配的旧 Camel 版本.

The only solution I see would be to isolate the Hbase integration in its own (freezed) application with an older Camel version that matches your desired Hbase-client version.

这篇关于Apache Camel 可以与旧的组件版本集成吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆