Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Like in the Greeter demo, the client side needs to be configured to know where the remote service actually is. When using a Discovery system this configuration is provided dynamically via Discovery (see the Discovery demo - TODO). In this demo this information is provided statically in a OSGI-INF/remote-service/remote-services.xml file.

Code Block
xml
xml

<service<endpoint-descriptions xmlns="http://www.osgi.org/xmlns/sdrsa/v1.0.0">
  <service<endpoint-description>
    <provide<property interfacename="orgobjectClass">
      <array>
        <value>org.apache.cxf.dosgi.samples.springdm.DinnerService" DinnerService</>value>
    <property name="osgi.remote.interfaces">*  </property>array>
    <property name="osgi.remote.configuration.type">pojo<</property>
    <property name="osgi.remote.configuration.pojo.addressendpoint.id">http://localhost:9000/org/apache/cxf/dosgi/samples/springdm/DinnerService</property>
    <property name="service.imported.configs">org.apache.cxf.ws</property>
  </serviceendpoint-description>
</serviceendpoint-descriptions>

Install and run the consumer side of the demo in a separate Felix instance:

...