I think Embedding Mokai can not be made buy creating new CamelRoutingEngine. as shown by https://github.com/germanescobar/mokai/wiki/Embedding-Mokai. because the routing engine then will use the default settings like the "DefaultMessageStore" for example. I think it should be initialized by using Spring context.
I tried to embed Mokai in a Web Application deployed in Tomcat 7.0.27 and I used the "org.springframework.web.context.ContextLoaderListener" to initialize the routingEngine, However, It was failed to get running.
I think Embedding Mokai can not be made buy creating new CamelRoutingEngine. as shown by https://github.com/germanescobar/mokai/wiki/Embedding-Mokai. because the routing engine then will use the default settings like the "DefaultMessageStore" for example. I think it should be initialized by using Spring context.
I tried to embed Mokai in a Web Application deployed in Tomcat 7.0.27 and I used the "org.springframework.web.context.ContextLoaderListener" to initialize the routingEngine, However, It was failed to get running.