Hi ! Which is the easiest way to check if the connection to a broker is active. Using:
<bean id="amqConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop"> <property name="connectionFactory"> <bean class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="${jms.brokerurl}" /> </bean> </property> </bean> <bean id="amqTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="amqConnectionFactory" /> </bean> <bean id="amqJmsTemplate" class="org.springframework.jms.core.JmsTemplate"> <property name="connectionFactory" ref="amqConnectionFactory" /> </bean> In a monitor servlet code the the jmstemplate sends a message to a queue. But i seems to hang for a while. The socket seems to be open even after the default time of 30 seconds. Is there a way to check before try sending the message to a queue. Or is there any other smart way to accomplish same thing ? Thanks in advance. Regards, Daniel -- View this message in context: http://old.nabble.com/Howto-check-if-connection-is-active-in-Pool-when-all-brokers-in-a-failover-chain-are-shutdown-tp26626661p26626661.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.