Hi,
I am using felix together with CXF DOSGI using the example with iPOJO.
However, I don't use annotation but I try to publishing as a declarative
service. The problem is that if I add a service reference in the
component declaration suddenly the service has no requirements or
capabilities.
This setup works:
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
immediate="true" name="org.me3gas.ceem.local">
<implementation class="org.me3gas.ceem.impl.EnergyEfficiencyManagerImpl"/>
<service>
<provide interface="org.me3gas.ceem.EnergyEfficiencyManager"/>
</service>
<property name="SOAP.service.name" type="String"
value="EnergyEfficiencyManager"/>
<property name="service.exported.configs" type="String"
value="org.apache.cxf.ws"/>
<property name="service.exported.interfaces" type="String"
value="org.me3gas.ceem.EnergyEfficiencyManager"/>
<property name="org.apache.cxf.ws.httpservice.context" type="String"
value="/me3gas/ceem/EnergyEfficiencyManager"/>
</scr:component>
But this does not:
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
immediate="true" name="org.me3gas.ceem.local">
<implementation class="org.me3gas.ceem.impl.EnergyEfficiencyManagerImpl"/>
<service>
<provide interface="org.me3gas.ceem.EnergyEfficiencyManager"/>
</service>
<property name="SOAP.service.name" type="String"
value="EnergyEfficiencyManager"/>
<property name="service.exported.configs" type="String"
value="org.apache.cxf.ws"/>
<property name="service.exported.interfaces" type="String"
value="org.me3gas.ceem.EnergyEfficiencyManager"/>
<property name="org.apache.cxf.ws.httpservice.context" type="String"
value="/me3gas/ceem/EnergyEfficiencyManager"/>
<reference bind="setManager" cardinality="1..1"
interface="org.me3gas.ceem.CollaborativeEnergyEfficiencyManager"
name="CollaborativeEnergyEfficiencyManager" policy="dynamic"
unbind="unsetManager"/>
</scr:component>
The bundle is active but when execute: "inspect service capability <ID>"
in first case, I get the correct info, but in the second there is no
info ("nothing" it says).
My bundles:
[ 0] [Active ] [ 0] System Bundle (2.0.5)
[ 1] [Active ] [ 1] Apache Commons Logging (1.1.1)
[ 2] [Active ] [ 1] Distributed OSGi Distribution Software
Single-Bundle Distribution (1.1)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.4.3)
[ 4] [Active ] [ 1] Apache Felix Configuration Admin Service
(1.2.6)
[ 5] [Active ] [ 1] Apache Felix EventAdmin (1.2.2)
[ 7] [Active ] [ 1] Apache Felix iPOJO Arch Command (1.6.0)
[ 8] [Active ] [ 1] Apache Felix Declarative Services (1.6.0)
[ 9] [Active ] [ 1] Apache Felix Shell Service (1.4.2)
[ 10] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
[ 11] [Active ] [ 1] Apache Jakarta log4j Plug-in
(1.2.15.v201005080500)
[ 12] [Active ] [ 1] osgi.cmpn (4.2.0.200908310645)
[ 16] [Active ] [ 1] EnergyEfficiencyFramworkAPI
(1.0.0.201109021610)
[ 18] [Active ] [ 1] Hydra Middleware API (1.0.0.201109021646)
[ 19] [Active ] [ 1] HydraManagerConfigurator (1.0.0.201109021646)
[ 26] [Active ] [ 1] EnergyEfficiencyManagerImpl
(1.0.0.201109021830)
[ 27] [Active ] [ 1] Apache Felix iPOJO (1.6.0)
/Tomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]