Hi!
I am using using camel 2.9.0 with JMS camel component in my application with
ActiveMQ server (works perfectly).
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="tcp://localhost:61616" />
</bean>
</property>
</bean>
Now, I would want to use the activemq camel component instead of the JMS
camel component. I configure it like this:
<bean id="jms"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
I understand in the documentation that a dependency to the pool connection
factory component is optional, but when I try to start I obtain this error:
org.springframework.web.context.ContextLoader Context
initialization failed org.apache.camel.RuntimeCamelException:
java.lang.RuntimeException: Failed to instantiate PooledConnectionFactory:
org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException:
org.apache.activemq.pool.PooledConnectionFactory in KernelBundleClassLoader:
[bundle=org.apache.activemq.activemq-camel_5.6.0]
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1196)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
I have tried to switch to the 2.10.0 version but maven does not find the jms
component in a higher version than the 2.9.2.
Could someone tell me what I am doing wrong?
kindest regards
--
View this message in context:
http://camel.465427.n5.nabble.com/ExtendedClassNotFoundException-PooledConnectionFactory-tp5716386.html
Sent from the Camel - Users mailing list archive at Nabble.com.