Unable to find JMS Component when declaring WMQ Bean in Spring

Solution Unverified - Updated -

Issue

  • Facing problem by deploying or running a Fuse Project that is using WMQ endpoint in Spring.
  • Want to read from WMQ Endpoint and do some stuff like sending to Sybase DB and so on.
  • Defined the WMQ Endpoint in the Camel-Context like 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.