[英]Spring Integration Migration from 3 to 4
I have multiple services (serviceA, ServiceB ..)using spring integration . 我有很多使用spring集成的服务(serviceA,ServiceB ..)。 Each service is dependent upon other submodules(which again is using spring integration).
每个服务都依赖于其他子模块(再次使用spring集成)。
In most of our config xml files we have hard coded the version like below : http://www.springframework.org/schema/integration/ws http://www.springframework.org/schema/integration/ws/spring-integration-ws-3.0.xsd 在大多数配置xml文件中,我们对以下版本进行了硬编码: http : //www.springframework.org/schema/integration/ws http://www.springframework.org/schema/integration/ws/spring-integration -ws-3.0.xsd
I have a task to migrate one service (ServiceA) from spring integration 3 to 4. I changed the config files to use versionless aliases (eg spring-integration.xsd), but as this service is dependent on other services, it looks like I have to change all the dependent services also to spring integration 4. 我的任务是将一个服务(ServiceA)从Spring Integration 3迁移到4。我将配置文件更改为使用无版本别名(例如spring-integration.xsd),但是由于该服务依赖于其他服务,因此看起来还必须将所有依赖服务也更改为春季集成4。
Is there any other option ? 还有其他选择吗?
I'm afraid it isn't possible if the dependency is on the code level. 恐怕如果依赖项在代码级别上是不可能的。 Spring Integration
3.0
is compatible with Spring Framework 4.x
, but only if you don't use Messaging. Spring Integration
3.0
与Spring Framework 4.x
兼容,但4.x
是您不使用消息传递。 In that case an old org.springframework.integration.Message
isn't compatible with new org.springframework.messaging.Message
. 在这种情况下,旧的
org.springframework.integration.Message
与新的org.springframework.messaging.Message
不兼容。
See more info about migration in the Migration Guide . 请参阅《 迁移指南》中有关迁移的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.