Versions Compared

Key

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

...

Wiki Markup
{snippet:id=routeDefinition|lang=javaxml|url=camel/trunk/components/camel-cxf/src/test/javaresources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.javaxml}

The to endpoint is a CXF Bean with bean name customerServiceBean. The name will be looked up from the registry. Next, we make sure our service bean is available in Spring registry. We create a bean definition in the Spring configuration. In this example, we create a List of service beans (of one element). We could have created just a single bean without a List.

...