Process gets stuck on raise when trying to connect on a activemq broker which is down
Hi,
I am using spring configuration to connect to activemq broker service
There is no problem once the broker gets down, the client will attempt to connect to it
But, if it is down when raising up, they will get stuck on the spring initialization.
How can i prevent this?
What configuration should i use to the Active mq so that it is not stuck on raise until AMQ raises, but instead will attempt to reconnect just like it does during run?
This is the configuration i use for the connection factory:
Code:
<bean id="connectionFactoryProducer"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="failover:(tcp://${messaging.broker.ip}:${messaging.broker.port})?randomize=false" />
<property name="messagePrioritySupported" value="true" />
<property name="useAsyncSend" value="true"/>
</bean>
thanks