Exception: javax.naming.NoInitialContextException

If you try to use Camel without Spring using code something like this

You might get an exception like this

This is because if you are not using Spring then the default Registry implementation uses JNDI.

A simple workaround for this is to specify a JNDI provider. An easy fix is to create a file called jndi.properties on the classpath and give it this content...

© 2004-2014 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram