Announcement Announcement Module
Collapse
No announcement yet.
Process gets stuck on raise when trying to connect on a activemq broker which is down Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 07:56 AM.

  • #2
    Sorry for not getting to this sooner.
    We are in the process of moving to StackOverflow for our forums.

    This question is probably a better candidate for StackOverflow, perhaps against the #spring-jms tag.

    If you do post it there, please reply here with the link.

    Thanks

    Comment

    Working...
    X