Pojo Component
The pojo: component converts Java binds PojoExchanges to method invocations into Camel exchangeson Java Objects.
URI format
Code Block |
---|
pojo:someName |
...
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 A pojo: endpoint is cannot be 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.. 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:
Wiki Markup |
---|
{snippet:id=invoke|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/pojo/PojoRouteTest.java} |