Aop

Table of Contents

Usage

Does processing before and/or after the route is completed

Usage

[Important]Important

The Aop pattern has been deprecated in Apache Camel.

The Aop pattern allows you to specify processing steps that are performed around a processing step. The processing steps can be done either before, after, or before and after the preceding step in the route.

An Aop pattern can occur anywhere in the body of a route. ==== Properties Table 143, “Aop Properties” describes the properties you can specify using the properties editor.

Table 143. Aop Properties

NameDescription

After Finally Uri

Specifies an endpoint to which the messages are sent after the AOP pattern is finished processing. The endpoint in specified in this property is invoked from a finally block and is guaranteed to get the message in the event of an exception.

After Uri

Specifies an endpoint to which the messages are sent after the AOP pattern is finished processing.

Before Uri

Specifies an endpoint to which the messages are sent before the AOP pattern is finished processing.

Description

Specifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.

Id

Specifies a unique identifier for the endpoint.

The tooling automatically generates an id for a node when it is created, but you can remove that id or replace it with your own. The Camel debugger requires all nodes with a breakpoint set to have a unique id.

You can use the id to refer to endpoints in your Camel XML file.