Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Pojo Component

The pojo: component converts Java method invocations into Camel exchanges.

URI format

Code Block

pojo:someName

Where someName can be any string to uniquely identify the endpoint

Using

Object instance that can receive invocations, must be explicitly registered with the PojoComponent.

Wiki Markup
{snippet:id=register|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/pojo/PojoRouteTest.java}

Once an endpoint has been registered, you can build Camel routes that use it to process exchanges.

Wiki Markup
{snippet:id=route|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/pojo/PojoRouteTest.java}

If a pojo: endpoint is defined as the input to the route, then you can look it up and ask it to create a proxy for a given interface. All methods called on that proxy will generate Reflection based exchanges that will be routed by Camel.

...

is now just an alias for the Bean component.

Has been removed in Camel 2.0.

Include Page
Endpoint See Also
Endpoint See Also

...