elibom / mokai

Messaging Gateway
20 stars 15 forks source link

Embedding Mokai can not be made buy creating new CamelRoutingEngine. #50

Open yalomoush opened 11 years ago

yalomoush commented 11 years ago

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.