Red Hat Bugzilla – Bug 1307012
KIE Spring in OSGI environment needs different setup than in non-OSGI environment
Last modified: 2016-10-14 10:20:35 EDT
Section Number and Name:
Administration And Configuration Guide / Chapter 6.
Describe the issue:
KIE Spring in OSGI environment needs different setup than in non-OSGI environment:
1. The "org.drools.osgi.spring.OsgiKModuleBeanFactoryPostProcessor" should be used instead of "org.kie.spring.KModuleBeanFactoryPostProcessor" to postprocess KIE elements in OSGI environment.
2. Do NOT install 'drools-module' feature before 'kie-spring' feature! If you did so, the 'drools-compiler' bundle would not detect packages exported by 'kie-spring', and you would see a NCDF error later. However, you can run
'osgi:refresh drools-compiler_bundle_ID' to force drools-compiler to rebuild its Import-Package metadata.
Suggestions for improvement:
Here is the merge request for this issue in documentation GIT repository .