Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.13.0
-
Patch Available
-
Patch
Description
Embed spring-dm in activemq-osgi to avoid loading spring-dm in Karaf
In commit 3a6d67e8f95320bea91b7c7106173c9b34773bc5, a test was fixed in issue AMQ-4727 by reusing the spring-dm OsgiBundleXmlApplicationContext class inside the ActiveMQServiceFactory managed service factory.
To satisfy the import packages for activemq-osgi, the 'spring-dm' Karaf feature was added to the main 'activemq-client' feature.
This is problematic because loading the 'spring-dm' Karaf feature enables the Spring DM deployer. This deployer is unnecessary in environments that rely on Blueprint or CDI wiring and it may unexpectedly activate Spring DM bundles in those environments. Because spring-dm was compiled against older versions of Spring 3.0 and 3.1, it can also cause older versions of Spring features to be loaded into the container.
To avoid using the ‘spring-dm’ Karaf feature to provide the classes, I propose embedding the spring-dm bundles inside activemq-osgi. Since they are only used as library code to provide the BundleContext when parsing the BrokerService context, they can be embedded safely without any dependency issues.
This is the root cause of the following issue:
Attachments
Issue Links
- blocks
-
AMQ-6241 Installing camel-core in Karaf prevents activemq-camel from deploying successfully
- Resolved
-
AMQ-6230 Camel 2.17.0 breaks Karaf integration tests
- Resolved
-
KARAF-4411 FeatureResolver: spring-dm-web feature installs Spring ver 3.1.4 and 3.2.14 at the same time
- Resolved
-
AMQ-6136 Activemq client OSGi feature should support Spring 4.x
- Resolved
-
AMQ-5932 ActiveMQ-OSGI should not depend on spring-dm
- Resolved
- links to