glassfish
  1. glassfish
  2. GLASSFISH-18938

[osgi-cdi]OSGi service automatic publishing with @Publish-liking annotation

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: future release
    • Fix Version/s: None
    • Component/s: OSGi-JavaEE
    • Labels:
      None

      Description

      Liking Weld-OSGi:

      allows developers to automatically publish service implementation.There is nothing to do, just put the
      annotation. OSGi framework is completely hidden. Then the service is accessible through CDI-OSGi service injection
      and OSGi classic mechanisms.

      In addition, on OSGi RFP-0146 Draft,

      CDI002 - The specification MUST make it possible to publish CDI beans in the OSGi Service Registry.

      So, this is a critical Requirement on CDI/OSGi Integration just as @OSGiService.

        Activity

        Hide
        TangYong added a comment -

        Splited patch for GLASSFISH-18938 is uploaded, please seeing GLASSFISH-18938-patch-20121211.zip.

        Note: I have not updated BeanDeploymentArchiveImpl.java from weld-integration module(JJ fixed GLASSFISH-19406), and once having no problem on this patch, I will update BeanDeploymentArchiveImpl.java with trunk.

        Show
        TangYong added a comment - Splited patch for GLASSFISH-18938 is uploaded, please seeing GLASSFISH-18938 -patch-20121211.zip. Note: I have not updated BeanDeploymentArchiveImpl.java from weld-integration module(JJ fixed GLASSFISH-19406 ), and once having no problem on this patch, I will update BeanDeploymentArchiveImpl.java with trunk.
        Hide
        TangYong added a comment -

        now, implementation is blocked by GLASSFISH-19215, and am fixing GLASSFISH-19215.

        Show
        TangYong added a comment - now, implementation is blocked by GLASSFISH-19215 , and am fixing GLASSFISH-19215 .
        Hide
        TangYong added a comment -

        Sahoo Said:

        1. I think you should explore EJBTracker in osgi-ejb-container to see
        how it registers EJBs as OSGi services.

        2. The service properties look good to me to start with.

        Show
        TangYong added a comment - Sahoo Said: 1. I think you should explore EJBTracker in osgi-ejb-container to see how it registers EJBs as OSGi services. 2. The service properties look good to me to start with.
        Hide
        TangYong added a comment -

        currently, a basic prototype has been implemented on https://github.com/tangyong/gf-cdi-osgi-integration.

        Show
        TangYong added a comment - currently, a basic prototype has been implemented on https://github.com/tangyong/gf-cdi-osgi-integration .

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            TangYong
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: