Results 1 to 1 of 1

Thread: Process gets stuck on raise when trying to connect on a activemq broker which is down

  1. #1
    Join Date
    Jul 2012
    Posts
    27

    Default 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
    Last edited by michals; Dec 30th, 2012 at 06:56 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •