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

Compare with Current View Page History

« Previous Version 2 Next »

Pojo Component

The pojo: component binds PojoExchanges to method invocations on Java Objects.

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

A pojo: endpoint cannot be defined as the input to the route. Consider using a direct: or queue: endpoint as the input for a PojoExchange. You can use the createProxy() methods on PojoComponent to create a proxy that will generate PojoExchanges and send them to any endpoint:

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