Hi,all my friends: There are two ways to register services and get the registered services in the OSGI or in the Equinox,they are bundlecontext and Declarative Service. I want to know in WSO2 ,how we implement the Declarative Service ? In Equinox 's Declarative Service, when a bundle started ,the bundle 's MANIFEST.MF will be read ,and if there is a "Service-Component" header exist in the MANIFEST.MF, it indicate that the bundle use the Declarative Service to register it's service, then the xml file the "Service-Component" pointed to will be read ,and the services in the xml file will be registered. But I don't know how did the WSO2 do this work? Can you give me some examples? I just know there are some XXXXComponent class in the source code,almost they are all under the XXXXXX.internal src package, may be this class is the same as the component in Declarative Service. The Second question, many BE bundle may have two files under the META-INF directory, they are component.xml and service.xml ,do you know their usefulness?
Thank you. Best Wishes. ShiLiangliang
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev