Versions Compared

Key

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

...

The service is implemented in the class CustomerServiceImpl, which simply implements the previously-generated service interface. The method getCustomersByName demonstrates how a query function looks like. The idea is to search and return all customers with the given name. If the searched name is null, the method returns an exception to indicate that no matching customer was found. (In a real implementation, a list of
zero objects can typically be used). For any other name, the method returns a list of two customer objects. The number of  objects can be increased to test how fast CXF works for larger data.

...