You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jean-Baptiste Onofré <jb...@nanthrax.net> on 2011/05/25 10:36:08 UTC
Re: OSGi Blueprint and Spring configuration mix-up
Hi,
no, you can't mix Spring and Blueprint as it's not the same deployer and
application context.
But you can use directly Spring to expose the OSGi service:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" ...>
[...]
<osgi:service ref="bean" interface="interface">
<osgi:service-properties>
<entry key="key" value="value"/>
</osgi:service-properties>
</osgi:service>
</beans>
Regards
JB
On 05/25/2011 10:36 AM, lbu wrote:
> Hi,
> is it possible to configure an object using Spring and then expose it as a
> service using OSGi Blueprint?
>
> Thx
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/OSGi-Blueprint-and-Spring-configuration-mix-up-tp2983578p2983578.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
Re: OSGi Blueprint and Spring configuration mix-up
Posted by lbu <lb...@gmail.com>.
Hi,
thanks for the answer.
One more question (I'm a newbie): how long will Spring OSGi be supported?
If I'm not mistaking Blueprint will be the "future".
Thx
--
View this message in context: http://karaf.922171.n3.nabble.com/OSGi-Blueprint-and-Spring-configuration-mix-up-tp2983578p2983614.html
Sent from the Karaf - User mailing list archive at Nabble.com.