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.
This topic has been locked.
4 replies Latest Post - 2010-06-21T14:41:40Z by Rohit_R
Pinned topic How to use OSGi with SCA?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-06-21T14:41:40Z at 2010-06-21T14:41:40Z by Rohit_R
Tom.Seelbach 060000UQSD11 PostsACCEPTED ANSWER
Re: How to use OSGi with SCA?2010-06-03T14:43:34Z in response to Rohit_RHi Rohit,
The SCA Feature Pack needs to be at fixpack level 220.127.116.11  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:50Z in response to Tom.SeelbachTom,
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 PostsACCEPTED ANSWER
Re: How to use OSGi with SCA?2010-06-11T19:53:38Z in response to Rohit_RRohit,
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:40Z in response to Graham_ChartersGraham,
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.