JBoss Community

Re: Weld-OSGi integration in AS7

created by Sahoo Sahoo in JBoss AS7 Development - View the full discussion

It's good to see this being worked out here. In GlassFish project, we have developed a CDI portable extension that allows consumption of OSGi services from a WAB or other EE apps with OSGi bundle context. We have added a qualifier called org.glassfish.osgicdi.OSGiService which can be used like this:

 

@Inject @OSGiService

IntfA a;

 

An example is available at http://blogs.oracle.com/alexismp/entry/screencast_dynamic_osgi_services_using. The portable extension can be downloaded from our maven repo at

http://download.java.net/maven/glassfish/org/glassfish/fighterfish/osgi-cdi/1.0.0/osgi-cdi-1.0.0.jar

 

I thought I showed this to Ales at OpenBlend.

 

Sahoo

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community