-
1. Re: Dependency on OSGi Blueprint
sebastian.laskawiec Feb 29, 2016 7:51 AM (in response to kenwenzel)Yes that would be possible. I've created a jira for it: [ISPN-6287] Make blueprint optional in OSGi manifests - JBoss Issue Tracker
mgencur - do you see any drawbacks?
-
2. Re: Dependency on OSGi Blueprint
mgencur Feb 29, 2016 7:52 AM (in response to kenwenzel)Hi Ken,
infinispan-core uses Blueprint to export some services related to configuration parsing or marshalling. Without Blueprint, it would not be possible to parse Infinispan configuration files. These services would have to be exported in a different way.
Martin
-
3. Re: Dependency on OSGi Blueprint
sebastian.laskawiec Feb 29, 2016 8:06 AM (in response to kenwenzel)Since we are not sure about your local environment - could you please help us a little bit and do an experiment?
Could you please:
- take the latest infinispan-embedded (or remote) artifact (it's called an Uber Jar - they should contain all necessary dependencies)
- modify MANIFEST.MF and make Blueprint optional
- check if you can start infinispan embedded (or connect to the remote cluster - depending on your use case)
-
4. Re: Dependency on OSGi Blueprint
kenwenzel Mar 2, 2016 6:28 AM (in response to sebastian.laskawiec)I included the modified infinispan-embedded bundle as well as a modified version of the infinispan-tree bundle in my OSGi environment.
But starting Infinispan fails with:
Caused by: java.lang.NullPointerException
at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:184)
at org.infinispan.commons.util.ServiceFinder.addOsgiServices(ServiceFinder.java:74)
at org.infinispan.commons.util.ServiceFinder.load(ServiceFinder.java:49)
at org.infinispan.util.ModuleProperties.resolveModuleLifecycles(ModuleProperties.java:41)
...
Best regards,
Ken
-
5. Re: Dependency on OSGi Blueprint
sebastian.laskawiec Mar 3, 2016 10:14 AM (in response to kenwenzel)In that case this is a new feature request (please track it in [ISPN-6287] Make blueprint optional in OSGi manifests - JBoss Issue Tracker). The easiest work around is to put Blueprint inside your container.
I also highly encourage you to adjust ServiceTracker and other bits to suite your needs and create a Pull Request.
Please contact me in case of any questions.