I'm having the error: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
But how do you register your bean using the DefaultCamelContext, you can get at the registry but this only has lookup methods. I looked at the unit test BeanWithPropertiesAndHeadersAndBodyInjectionTest.java and this does something with JndiContext. Jonathan -- View this message in context: http://www.nabble.com/.convertBodyTo%28String.class%29-tp14718107s22882p14739081.html Sent from the Camel - Users mailing list archive at Nabble.com.
