hi,
on http://camel.apache.org/activemq.html
section 'Using connection pooling'
the following bean definitions are displayed:
<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
...
</beans>
<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="configuration" ref="jmsConfig"/>
</bean>
i followed the example but spring throws this exception:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'activemq' defined....
...
java.lang.IllegalArgumentException: Cannot convert value of type
[org.apache.camel.component.jms.JmsConfiguration] to required type
[org.apache.activemq.camel.component.ActiveMQConfiguration] for property
'configuration': no matching editors or conversion strategy found
question: am i missing something?
activemq-core-5.4.0.jar
camel-core-2.2.0.jar
camel-spring-2.2.0.jar
camel-jms-2.2.0.jar
my spring.xml starts with
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
...
thanks,
patrick