Hi The problem is that you use "default" scope for your bean. And then Camel cannot introspect the bean to figure out which method it has, and find the "foo" method to call.
You can possible google about "default" package visibility in Java, etc such as: http://stackoverflow.com/questions/714791/what-is-the-default-scope-of-a-method-in-java On Wed, Apr 3, 2013 at 3:53 PM, Gardella juan <gardellajuanpa...@gmail.com> wrote: > Hi, > > For example I have a bean: > > @Component("myBean") > public class MyBean{ > > public void foo(){ > } > > } > > And the route: > > from("...").to("bean:myBean") > > And works, but if I change the visibilty of MyBean to package fails: > > @Component("myBean") > class MyBean{ > > public void foo(){ > } > > } > > The route fails. I 've create the jira > https://issues.apache.org/jira/browse/CAMEL-6206, but was closed because it > was not very clear. > > Thanks, > Juan > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Enable-to-use-default-scope-beans-tp5730283.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen