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:
- Add Component scan to Spring for annotated beans.
- Annotate the class with intended annotation
- As Code show below
- Java code - Link here Java code
No comments:
Post a Comment
Please comment here