Hi Freeman, I'm using JBI service assembly:
/<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"> <service-assembly> ... </service-assembly> </jbi>/ I'm trying to move SMX 3 applications with minimal changes - just replacing JNDIs with Spring property-placeholders (read from a configuration file) and OSGi services. So in my service unit's xbean.xml I add: / <classpath> <library>osgi:org.springframework.beans</library> <library>osgi:org.springframework.context</library> <library>osgi:org.springframework.osgi.core</library> <library>osgi:org.apache.activemq.activemq-pool</library> </classpath>/ and then for OSGi service reference: /<osgi:reference id="connectionFactory" interface="org.apache.activemq.pool.PooledConnectionFactory" />/ and for placeholders like described in http://www.consulting-notes.com/2010/08/spring-osgi-compendium-example.html http://www.consulting-notes.com/2010/08/spring-osgi-compendium-example.html : / <osgix:cm-properties id="props" persistent-id="my.props"/> <context:property-placeholder properties-ref="props"/>/ But like I said I get that "java.lang.IllegalArgumentException: Required 'bundleContext' property was not set" error. I did some workaround for the placeholders reading them such way: /<context:property-placeholder location="file:${karaf.home}/etc/my.props.cfg" />/ But don't know how to fix OSGi service references. -- View this message in context: http://servicemix.396122.n5.nabble.com/Re-Unable-to-get-OSGi-service-in-JBI-application-tp5713984p5713985.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
