Versions Compared

Key

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

...

Code Block
java
java
public interface DinnerService {
    List<Restaurant> findRestaurants(String searchQuery);
}

The Dinner Service Provider

...

The service implementation provides a simplistic implementation of the DinnerService interface which is instantiated via Spring as a bean.

...

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

Code Block
-> start http://repo2.maven.org/maven2/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-spring-dm-interface/1.0/cxf-dosgi-ri-samples-spring-dm-interface-1.0.jar
-> start http://repo2.maven.org/maven2/org/apache/cxf/dosgi/samples/cxf-dosgi-ri-samples-spring-dm-client/1.0/cxf-dosgi-ri-samples-spring-dm-client-1.0.jar
... log messages may appear, at some point the consumer will make an invocation on the remote service, you will see:
Found the following restaurants:
  Jojo's (1 food way) Rating: 3
  Boohaa's (95 forage ave) Rating: 1
  MicMac (Plastic Plaza) Rating: 1

...