[GLASSFISH-18938] [osgi-cdi]OSGi service automatic publishing with @Publish-liking annotation Created: 25/Jul/12  Updated: 11/Dec/12

Status: Open
Project: glassfish
Component/s: OSGi-JavaEE
Affects Version/s: future release
Fix Version/s: None

Type: New Feature Priority: Critical
Reporter: TangYong Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Zip Archive GLASSFISH-18938-patch-20121211.zip    
GLASSFISH-18972 making @Publish to support filter pro... Sub-task Open Sanjeeb Sahoo  
GLASSFISH-19210 make @Publish support Service type re... Sub-task Open Sanjeeb Sahoo  
GLASSFISH-19440 getting out of the weld-integration l... Sub-task Open Sanjeeb Sahoo  


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.

Comment by TangYong [ 01/Aug/12 ]

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

Comment by TangYong [ 10/Aug/12 ]

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.

Comment by TangYong [ 23/Oct/12 ]

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

Comment by TangYong [ 11/Dec/12 ]

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.

Generated at Wed Oct 14 04:40:54 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.