Accessing OSGi services with multiple references from JSF managed bean -


i'm trying figure out how osgi services there multiple implementations (references) in jsf managed bean.

currently i'm using cdi annotations access services, doesn't seem support multiple service references or don't know how.

for example, can use following access service, can 1 @ time.

import javax.inject.inject; import org.glassfish.osgicdi.osgiservice;  @managedbean @applicationscoped public class connectionmgr  {     @inject @osgiservice     private componentfactory m_factory; } 

previously, i've used osgi declarative services bind multiple services below:

@aqute.bnd.annotation.component.reference(multiple = true, dynamic = true) public void setservice(someservice service) {     m_servicelist.add(service); } 

but far know can't use declarative services jsf managed beans.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -