Monday, 11 April 2016

Apache Camel Custome Annotated Beans Access



How to do Custom Bean Annotation Process in Apache Camel?
Sol:

In Camel we always have access to Camel Context. Using camel context we can access spring context as shown below. Once we have spring context we can access all features provided by Spring like getting annotated  beans .

Steps:
  1. Add Component scan to Spring for annotated beans.
  2. Annotate the class with  intended annotation
  3. As Code show below  
  4. Java code -   Link here   Java code 



No comments:

Post a Comment

Please comment here