LibraryToggle FramesPrintFeedback

One of the simplest and quickest approaches to generating a response message is to use a velocity template. Figure 6.3 shows the outline of a general template-based route. At the start of the route is a Camel CXF endpoint in PAYLOAD mode, which is the appropriate mode to use for processing the message as an XML document. After doing the work required to process the message and stashing some intermediate results in message headers, the route generates the response message using a Velocity template.

Comments powered by Disqus