LibraryToggle FramesPrintFeedback

Bean integration provides a general purpose mechanism for processing messages using arbitrary Java objects. By inserting a bean reference into a route, you can call an arbitrary method on a Java object, which can then access and modify the incoming exchange. The mechanism that maps an exchange's contents to the parameters and return values of a bean method is known as bean binding.

the bean binding can use either or both of the following approaches to initialize a method's parameters:

  • Conventional method signatures — If the method signature conforms to certain conventions, the bean binding can use Java reflection to determine what parameters to pass.

  • Annotations and dependency injection — For a more flexible binding mechanism, employ Java annotations to specify what to inject into the method's arguments. This dependency injection mechanism relies on Spring component scanning. Normally, if you are deploying your Fuse Mediation Router application into a Spring container, the dependency injection mechanism will work automatically.

Comments powered by Disqus
loading table of contents...