I think Lukasz is right. Spring dm simply does not work with spring 4. You
should consider moving to aries blueprint or declarative services which are
well supported in OSGi.
I am not sure about gemini. The stats show that there were only 7 commits
in the last year not sure if this means it is very stable or very inactive.
See
http://git.eclipse.org/c/gemini.blueprint/org.eclipse.gemini.blueprint.git/stats/?period=q&ofs=-1

Christian


2016-03-04 1:00 GMT+01:00 Cristiano Costantini <
[email protected]>:

> Hi All,
>
> @Łukasz I will take a look at eclipse Gemini,
>
> @Christian, I create it with maven and the Maven Bundle plugin,
> I thought to add the range manually but in fact I add the spring XML files
> (to META-INF/spring/* folder) and I have no other import of spring in java
> files, as a result the generated bundle has no Package-Import of spring at
> all (even checking at runtime with the command headers).
>
>
> The problem I am getting (and I think it is due the version mismatch) is
> that I have a bean which uses
> org.springframework.beans.factory.FactoryBean<T>
> and it
> don't work on servicemix (it works on Junit tests).
>
> The only difference I've found by now, is that in Junit tests, the bean is
> created with Spring 4 classes, in servicemix it is created from:
>
> <dependency>
> <groupId>org.apache.servicemix.bundles</groupId>
> <artifactId>org.apache.servicemix.bundles.spring-beans</artifactId>
> <version>3.2.14.RELEASE_1</version>
> </dependency>
>
>
>
> Il giorno gio 3 mar 2016 alle ore 19:39 Christian Schneider <
> [email protected]> ha scritto:
>
> > How do you create your bundle?
> > You should import the spring packages with a version range of e.g.
> [4.2,5).
> >
> > Christian
> >
> > On 03.03.2016 16:35, Cristiano Costantini wrote:
> > > Hello all,
> > > I'm testing Servicemix 7.0.0.M1,
> > > it starts with spring 3.2.14.RELEASE_1 installed.
> > >
> > > I can install spring 4 with the command:
> > > feature:install spring/4.2.3.RELEASE_1
> > >
> > > and I have both spring version installed, but when I install a bundle
> > with
> > > some beans configuration, Servicemix/Karaf uses Spring 3 to start it
> (and
> > > it give me errors)
> > >
> > > How can I force my bundle to be deployed by spring 4 ?
> > > What bit of information am I missing?
> > >
> > > Thank you!
> > > Cristiano
> > >
> >
> >
> > --
> > Christian Schneider
> > http://www.liquid-reality.de
> >
> > Open Source Architect
> > http://www.talend.com
> >
> >
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Reply via email to