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.
Example 2.1. Spring Main Method
package my.package.name
;
public class Main {
public static void main(String[] args) {
org.apache.camel.spring.Main.main(args);
}
}
Where org.apache.camel.spring.Main
is the Spring wrapper class, which defines a static
main()
method that instantiates the Spring container.