activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Xie <ant_mira...@163.com>
Subject dose failover have a timeout setting?
Date Mon, 07 Aug 2006 06:46:59 GMT

I use spring JmsTemplate to send jms message to AcitveMQ server. but i found
a problem that if amq server is not avaible, it will throw exception while
reconnect timeout.

here's my spring xml configurations:
  <bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
	<property name="connectionFactory">
		<bean class="org.apache.activemq.ActiveMQConnectionFactory"> <!--
;jms.useAsyncSend=true -->
			<property name="brokerURL"
value="failover:(tcp://ip1:61616,tcp://ip2:61616)?randomize=false;initialReconnectDelay=100;maxReconnectAttempts=2;maxReconnectDelay=1000;soTimeout=1000"/>
		</bean>
	</property>
  </bean>

  <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
	<property name="connectionFactory">
		<ref local="jmsFactory"/>
	</property>
  </bean> 

is there any mistakes ?
could someone do me a favor? Thx!

Matt.
-- 
View this message in context: http://www.nabble.com/dose-failover-have-a-timeout-setting--tf2061946.html#a5680259
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message