LibraryLink ToToggle FramesPrintFeedback

Defining a Spring Main Method

FUSE Mediation Router defines a convenient wrapper class for the Spring container. To instantiate a Spring container instance, you simply write a short main() method that delegates creation of the container to the wrapper class.

Example 2.1 shows how to define a Spring main() method for your router application.


Where org.apache.camel.spring.Main is the Spring wrapper class, which defines a static main() method that instantiates the Spring container.