I logged ticket https://issues.apache.org/jira/browse/CAMEL-6965
On Wed, Nov 13, 2013 at 8:27 PM, alexey-s <alex...@mail.ru> wrote: > Hi > > Continue my idea of using annotations. > > Annotations EJB 3.0 is much easier to read than the xml description of EJB > 2.0. > Annotations easier to read than the jndi lookup from the era of EJB 2.0. > > Checking the data type is during the execution of the code. > Annotations are checked when lifting an object. jndi lookup is at the level > of code execution (type casting). > Not the fact that the written tests will be able to test all aspects of the > code execution. > It is likely that some areas will remain without tests. > > For this reason, I try to use the less beanRef("ben_name"). Replace it on > the bean(bean_object). > As long as there is no suitable annotation, I use the method > CamelContextHelper.mandatoryLookup > In the construction process is the identification of the type conversion > errors. > > > Aleksey > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Propose-add-annotation-BeanInject-tp5742782p5743208.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen