Hi!

We`d like to have camel-route with ActiveMQ and WebSphereMQ adapters
simultaneously.
 
Everything works fine if we use WMQ only. But some strange error appears
when we add ActiveMQ jars (activemq-camel):

... nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jmsTemplate' defined in class path resource [camel-main.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to convert
property value of type 'com.ibm.mq.jms.MQXAQueueConnectionFactory' to
required type 'javax.jms.ConnectionFactory' for property
'connectionFactory'; nested exception is java.lang.IllegalStateException:
Cannot convert value of type [com.ibm.mq.jms.MQXAQueueConnectionFactory] to
required type [javax.jms.ConnectionFactory] for property
'connectionFactory': no matching editors or conversion strategy found 

Part of camel-main.xml: (which works fine just with WMQ)

    <bean name="jmsTemplate"
class="org.springframework.jms.core.JmsTemplate">
        <property name="sessionTransacted" value="true" />
        <property name="connectionFactory">
            <bean class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
                <property name="transportType" ref="transportType" />
                <property name="queueManager" ref="queueManager" />
                <property name="hostName" ref="hostname" />
                <property name="port" ref="port" />
            </bean>
        </property>
        <property name="sessionAcknowledgeModeName" value="AUTO_ACKNOWLEDGE"
/>
    </bean>

Please, comment it...




--
View this message in context: 
http://camel.465427.n5.nabble.com/ActiveMQ-and-WebSphereMQ-tp5721492.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to