camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markmueller <>
Subject Invalid property 'sendTimeout' of bean class ActiveMQConnectionFactory
Date Fri, 24 Jul 2015 18:12:05 GMT

Just to give you context for my problem, I'm trying to test exception
handling when attempting to post to a queue which is full and not accepting
any more messages.  I created an ActiveMQ queue with
'storeUsageHighWaterMark="1"' and posted to the queue until it wouldn't take
any more messages.

When I run my test, the log stops at "ActiveMQSession  - Sending message:
ActiveMQBytesMessage" and eventually times out.   I figured I had to set
sendTimeout on the ActiveMQConnectionFactory:

 	<bean id="amqConnectionFactory"
 		<property name="brokerURL" value="tcp://localhost:61616" />
 		<property name="sendTimeout" value="10000"/> 
 	<bean id="jmsPooledConnectionFactory"
      														init-method="start" destroy-method="stop" >
  		<property name="connectionFactory" ref="amqConnectionFactory" />
	<bean id="jmsTransactionManager"
		<property name="connectionFactory" ref="amqConnectionFactory" />
	<bean id="myQueue" class="org.apache.camel.component.jms.JmsComponent">  
	    <property name="connectionFactory" ref="jmsPooledConnectionFactory" />
	    <property name="transactionManager" ref="jmsTransactionManager" />  
	    <property name="cacheLevelName" value="CACHE_NONE" />
The error I'm getting is:

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'amqConnectionFactory' defined in class path resource
[integration/spring-config-integration-test.xml]: Error setting property
values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'sendTimeout' of bean class [org.apache.activemq.ActiveMQConnectionFactory]:
Bean property 'sendTimeout' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?

Any ideas what I'm doing wrong?    I'm using activemq-camel-5.11.1


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message