Re: How do You use spring in OSGi?

2016-04-26 Thread Tomek
For sure I will evaluate it and I let You know. It seems that mixture of blueprint and spring to connect beans from different bundle is the only option. Nobody has tried to connect bean factories from different bundles to produce beans graph as we did to have more transparent solution Regards

Re: How do You use spring in OSGi?

2016-04-25 Thread Guillaume Nodet
If you have failing use cases, please raise a JIRA issue with a reproducible test case so that I can have a look. 2016-04-25 23:01 GMT+02:00 Tomek : > Hi Guillaume > So we have solution for spring namespaces but what with class loaders in > spring, is it solved also

Re: How do You use spring in OSGi?

2016-04-25 Thread Tomek
Hi Guillaume So we have solution for spring namespaces but what with class loaders in spring, is it solved also by blueprint-spring-extender? part of spring code is using ClassUtil which returns ContextClassLoader Regards Tomasz -- View this message in context:

Re: How do You use spring in OSGi?

2016-04-25 Thread Michael Täschner
Hi Guillaume, do you have some documentation for the blueprint-spring/blueprint-spring-extender usage? Does it use the blueprint service/reference declarations for OSGi integration? The Aries frontpage seems quite outdated ... Thanks and Best Regards, Michael 2016-04-24 23:15 GMT+02:00

Re: How do You use spring in OSGi?

2016-04-24 Thread Guillaume Nodet
You can use the blueprint-spring namespace handler and blueprint-spring-extender bundle. The first one provides full support for spring namespaces (including custom ones) from a blueprint app. So you can simply have an empty blueprint which import the spring xml. The second one is an equivalent

Re: How do You use spring in OSGi?

2016-04-23 Thread Tomek
Christian and Tom Thanks for Your answer, so I see now that spring in OSGi is problematic in general it is not only our case. Unfortunately Blueprint or DS is not an option for us because there is no agreement in the team to use something else than spring (it is a strong resistance) so we stay

Re: How do You use spring in OSGi?

2016-04-23 Thread Christian Schneider
I also had the duty to help migrate a spring application to OSGi some time ago. My approach was to use standard based annotations as far as possible and make sure spring as well as blueprint can make use of them. The result was the Aries blueprint-maven-plugin. It parses a subset of CDI and JEE

Re: How do You use spring in OSGi?

2016-04-22 Thread Tom Barber
Hey Tomasz As opposed to answering the question at the end of your email, I'll answer your subject, which are subtly different ;) I migrated a bunch of webapp stuff to Karaf and I spent ages trying to figure out the spring stuff, then I suddenly realised. don't use it! :) If I chat to