AnsweredAssumed Answered

Cannot read Spring bean from ServiceMix

Question asked by josh3006 on Oct 22, 2012
Latest reply on Oct 23, 2012 by jbarrez
Hi,

I would like to read my spring.xml from a jar file which I deployed in Servicemix.
Activiti Engine is also running on the same Servicemix. Currently, I'm unable to read Spring bean.

Please find the xml below which located in META-INF

root
–META-INF
—-Spring.xml



<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://www.springframework.org/schema/osgi
            http://www.springframework.org/schema/osgi/spring-osgi.xsd">

    <bean id="helloWorldService" class="com.bw.osgi.provider.impl.HelloWorldServiceImpl"/>

    <osgi:service ref="helloWorldService" interface="com.bw.osgi.provider.able.HelloWorldService"/>
</beans>

I'm trying to use Expression to read this bean
${helloWorldService}

Outcomes