Hi,
I have just started learning DOSGi. Yesterday I managed to create a
service that was exposed as a web service which I developed and launched
in Eclipse. However, after I restarted Eclipse, the same
launch-configuration I used before suddenly stopped working. The service
and its component are active but no web service is created. What can be
wrong? I use the single-bundle-distribution of DOSGI.
This is my component description:
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
immediate="true" name="org.me3gas.ceem.collab">
<implementation
class="org.me3gas.ceem.impl.CollaborativeEnergyEfficiencyManagerImpl"/>
<service>
<provide interface="org.me3gas.ceem.CollaborativeEnergyEfficiencyManager"/>
</service>
<property name="SOAP.service.name" type="String"
value="CollaborativeEnergyEfficiencyManager"/>
<property name="service.exported.configs" type="String"
value="org.apache.cxf.ws"/>
<property name="service.exported.interfaces" type="String"
value="org.me3gas.ceem.CollaborativeEnergyEfficiencyManager"/>
<property name="org.apache.cxf.ws.httpservice.context" type="String"
value="/me3gas/ceem/CollaborativeEnergyEfficiencyManager"/>
</scr:component>
A second question is that when I tried to use the service remotely but
no proxy/client was created. I put this endpoint-description in a file
OSGI-INF/remote-service/remote-services.xml
<endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0">
<endpoint-description>
<property name="objectClass">
<array>
<value>org.me3gas.ceem.CollaborativeEnergyEfficiencyManager</value>
</array>
</property>
<property
name="endpoint.id">http://localhost:8082/me3gas/ceem/CollaborativeEnergyEfficiencyManager</property>
<property name="service.imported.configs">org.apache.cxf.ws</property>
</endpoint-description>
</endpoint-descriptions>
Do you want to know anything else about my configuration?
Kind regards
Tomas