We now have a jar file with SCA composite in it which uses implementation.spring. This SCA application is working fine.
Now we want to use OSGi services within this application. Fore example the Spring bean which is being exposed as an SCA component might have properties which are being bound to OSGi services.
We haven't been able to find a working sample for this scenario. Trying to put our SCA enabled jar in an OSGi EBA didn't work as the SCA composite in the EBA does'nt get resolved.
Tom.Seelbach 060000UQSD11 Posts
Re: How to use OSGi with SCA?2010-06-03T14:43:34ZThis is the accepted answer. This is the accepted answer.Hi Rohit,
The SCA Feature Pack needs to be at fixpack level 184.108.40.206  to work with the OSGI and JPA Feature Pack. The SCA Info Center was also updated to explain how to use SCA with OSGI Applications . A good place to start is the "Start here" doc . You can use OSGI applications as SCA component implementation as described in .
You can't put the SCA jar into the EBA. See "Deploying OSGi applications that use SCA"  and "Multiple SCA implementation packaging considerations" .
Hope this helps,
Re: How to use OSGi with SCA?2010-06-11T15:20:50ZThis is the accepted answer. This is the accepted answer.
- Tom.Seelbach 060000UQSD
thanks for the information and links. We were able to create an SCA application with OSGiApp as implementation. It seems at present blueprint is the only supported OSGi implementation and Spring DM is not supported.
Graham_Charters 100000UY5C2 Posts
Re: How to use OSGi with SCA?2010-06-11T19:53:38ZThis is the accepted answer. This is the accepted answer.
- Rohit_R 270000VB9P
I think you're probably already aware, but just to link the two threads up. This thread describes the position regarding SpringDM & SCA and how it should be possible to get it to work (albeit with a bit of Blueprint) - https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14476189
Re: How to use OSGi with SCA?2010-06-21T14:41:40ZThis is the accepted answer. This is the accepted answer.
- Graham_Charters 100000UY5C
thanks for the reply. We were able to create a sample SCA application with implementation as implementation.osgiapp. The OSGi app describes its services exposed to SCA via Blueprint services but internally uses Spring DM for describing OSGi service dependencies and dependency injection.