Topic
  • 4 replies
  • Latest Post - ‏2010-06-21T14:41:40Z by Rohit_R
Rohit_R
Rohit_R
24 Posts

Pinned topic How to use OSGi with SCA?

‏2010-05-25T17:07:19Z |
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.
Updated on 2010-06-21T14:41:40Z at 2010-06-21T14:41:40Z by Rohit_R
  • Tom.Seelbach
    Tom.Seelbach
    11 Posts

    Re: How to use OSGi with SCA?

    ‏2010-06-03T14:43:34Z  
    Hi Rohit,
    The SCA Feature Pack needs to be at fixpack level 1.0.1.5 [1] 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 [2]. A good place to start is the "Start here" doc [3]. You can use OSGI applications as SCA component implementation as described in [4].

    You can't put the SCA jar into the EBA. See "Deploying OSGi applications that use SCA" [5] and "Multiple SCA implementation packaging considerations" [6].
    [1] http://www-01.ibm.com/support/docview.wss?uid=swg24026940

    [2] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/welcome_fepsca.html

    [3] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/htmlnav_fepnew.html

    [4]http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tsca_osgi_impl.html

    [5] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tsca_osgi_deploy.html

    [6] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/csca_osgi_deploypkg.html

    Hope this helps,
    Tom
  • Rohit_R
    Rohit_R
    24 Posts

    Re: How to use OSGi with SCA?

    ‏2010-06-11T15:20:50Z  
    Hi Rohit,
    The SCA Feature Pack needs to be at fixpack level 1.0.1.5 [1] 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 [2]. A good place to start is the "Start here" doc [3]. You can use OSGI applications as SCA component implementation as described in [4].

    You can't put the SCA jar into the EBA. See "Deploying OSGi applications that use SCA" [5] and "Multiple SCA implementation packaging considerations" [6].
    [1] http://www-01.ibm.com/support/docview.wss?uid=swg24026940

    [2] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/welcome_fepsca.html

    [3] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/htmlnav_fepnew.html

    [4]http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tsca_osgi_impl.html

    [5] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/tsca_osgi_deploy.html

    [6] http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.soafep.multiplatform.doc/info/ae/ae/csca_osgi_deploypkg.html

    Hope this helps,
    Tom
    Tom,
    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.

    Regards,
    Rohit
  • Graham_Charters
    Graham_Charters
    2 Posts

    Re: How to use OSGi with SCA?

    ‏2010-06-11T19:53:38Z  
    • Rohit_R
    • ‏2010-06-11T15:20:50Z
    Tom,
    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.

    Regards,
    Rohit
    Rohit,

    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

    Regards, Graham.
  • Rohit_R
    Rohit_R
    24 Posts

    Re: How to use OSGi with SCA?

    ‏2010-06-21T14:41:40Z  
    Rohit,

    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

    Regards, Graham.
    Graham,
    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.
    regards
    Rohit