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.