Access it as you would any other service with spring, services are just
interfaces that the serviceregistry
provides you an implementation for.
Thanks for your response. I'm relatively new to this area. Is there anything
noticeable wrong with the configuration below. Given
That my service in activemq-broker.xml is define as...
<service ref="pooledConnectionFactory"
interface="javax.jms.ConnectionFactory">
<service-properties>
<entry key="name" value="localhost"/>
</service-properties>
</service>
Regards,
John
> <?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:camel-osgi="http://camel.apache.org/schema/osgi"
> xmlns:osgi="http://www.springframework.org/schema/osgi"
> xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
> http://camel.apache.org/schema/osgi
> http://camel.apache.org/schema/osgi/camel-osgi.xsd
> http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
>
> <camel-osgi:camelContext xmlns="http://camel.apache.org/schema/spring">
> <package>com.fusesource.camel</package>
> </camel-osgi:camelContext>
>
> <bp:blueprint>
> <bp:reference id="pooledConnectionFactory"
> interface="javax.jms.ConnectionFactory"/>
> </bp:blueprint>
>
> <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
> <property name="connectionFactory" ref="pooledConnectionFactory">
> </property>
> </bean>
> </beans>
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Accessing-blueprint-service-from-spring-tp4579885p4579923.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.