actually my usecase is i need to handle the broker not available situation. So i need to know the status of the broker before send the messsages? I tried with below sendtimeout property, but still not success.
<bean primary="true" id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="failover:(tcp://localhost:61616)" />
<property name="useAsyncSend" value="true" />
<property name="watchTopicAdvisories" value="false" />
<property name="sendTimeout" value="2000" />
</bean>