camel-users mailing list archives

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

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"
class="org.apache.activemq.ActiveMQConnectionFactory">
 		<property name="brokerURL" value="tcp://localhost:61616" />
 		<property name="sendTimeout" value="10000"/> 
 	</bean> 
 	
 	<bean id="jmsPooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
      														init-method="start" destroy-method="stop" >
  		<property name="connectionFactory" ref="amqConnectionFactory" />
 	</bean> 
 
	<bean id="jmsTransactionManager"
class="org.springframework.jms.connection.JmsTransactionManager">
		<property name="connectionFactory" ref="amqConnectionFactory" />
	</bean>    
 
	<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" />
	</bean>	
	
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

    Mark




--
View this message in context: http://camel.465427.n5.nabble.com/Invalid-property-sendTimeout-of-bean-class-ActiveMQConnectionFactory-tp5769888.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message