blob: 946b4148b6d9dfa44d7f2f9eeaf79e1c9c3c4076 [file] [log] [blame]
[[HowshouldIinvokemyPOJOsorSpringServices-HowshouldIinvokemyPOJOsorSpringServices]]
= How should I invoke my POJOs or Spring Services?
The various options are described in detail in
xref:ROOT:bean-integration.adoc[Bean Integration], in particular the
xref:ROOT:bean-binding.adoc[Bean Binding] describes how we invoke a bean
inside a route.
See the xref:ROOT:pojo-consuming.adoc[POJO Consuming] for examples using
either the `@Consume` annotation or using the routing DSL:
[source,java]
----
from("jms:someQueue").bean(MyBean.class, "someMethod");
----