You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Pojo Component

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

URI format

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.

Error formatting macro: snippet: java.lang.NullPointerException

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

Error formatting macro: snippet: java.lang.NullPointerException

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.

Error formatting macro: snippet: java.lang.NullPointerException
  • No labels