Details
Description
We have a simple camel route definied in Java DSL:
from("wmq:queue:ESB_TEST_IN").routeId("IN").
autoStartup(true).
log("${body}");
This route receives JMS messages from a WebLogicJMS queue with name ESB_TEST_IN and logs the body to the log file.
The route works fine when autoStartup is set to true. But when autoStartup is set to false then the creation of the WebLogic InitialContext failed because of an ClassNotFoundException regarding weblogic.jndi.WLInitialContextFactory and the following message is written to the karaf log file:
2012-12-07 12:03:21,502 WARN : DefaultJmsMessageListenerContainer | Setup of JMS message listener invoker failed for destination 'ESB_TEST_IN' - trying to recover. Cause: Destination [ESB_TEST_IN] not found in JNDI; nested exception is javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory] [org.springframework.jms.listener.DefaultMessageListenerContainer | mer[ESB_TEST_IN] | org.springframework.jms.3.0.7.RELEASE(id=135)]
This issue's related to https://jira.talendforge.org/browse/TESB-7884