blob: 220ba7127b3e5dec5656c7ac99515a11147773c1 [file] [log] [blame]
[[HowshouldIinvokemyPOJOsorSpringServices-HowshouldIinvokemyPOJOsorSpringServices]]
= How should I invoke my POJOs or Spring Services?
The various options are described in detail in
xref:bean-integration.adoc[Bean Integration], in particular the
xref:bean-binding.adoc[Bean Binding] describes how we invoke a bean
inside a route.
See the xref: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");
----