Unable to find JMS Component when declaring WMQ Bean in Spring
Issue
- Facing problem by deploying or running a
FuseProject that is usingWMQendpoint in Spring. - Want to read from
WMQEndpoint and do some stuff like sending toSybaseDB and so on. - Defined the
WMQEndpoint in theCamel-Contextlike this:
<bean id="wmq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.ibm.mq.jms.MQConnectionFactory">
<property name="transportType" value="1" />
<property name="hostName" value="IP" />
<property name="port" value="1418" />
<property name="channel" value="CHANNEL" />
<property name="queueManager" value="HMM05" />
<property name="SSLCipherSuite" value="SSL_RSA_WITH_3DES_EDE_CBC_SHA" />
<property name="useConnectionPooling" value="true" />
</bean>
</property>
</bean>
- Able to install and build the project without problems, that means that all maven dependencies could be found.
- But by deploying the project to the Fuse Server we get:
Exception in thread "SpringOsgiExtenderThread-8" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class
[org.apache.camel.component.jms.JmsComponent] for bean with name 'wmq' defined in URL [bundle://301.0:0/META-INF/spring/camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.camel.component.jms.JmsComponent not found from bundle [example_bundle]
Environment
- Red Hat JBoss Fuse
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
