ActiveMQ not being able to start up if the RabbitMQ server using MQTT or
STOMP is unavailable. The way I replicate this problem is to: 
1. Configure camel.xml to use MQTT or STOMP to a remote broker 
2. Stop the remote broker (RabbitMQ) 
3. Restart ActiveMQ 

Initially ActiveMQ starts but it then shuts down after not being able to
connect to the remote broker. 

Environment details; 
Active MQ:5.10.0 
Camel :2.17.0 
Rabbit MQ :3.5.0 

Camel.xml content below.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>
       


<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent" >
        <property name="connectionFactory">
          <bean class="org.apache.activemq.ActiveMQSslConnectionFactory">
            <property name="brokerURL"
value="vm://BMRSTESTBROKER?create=false&amp;waitForStart=1000" />
            <property name="userName" value="bmrscamel"/>
            <property name="password" value="bmrscamel"/>
             <property name="keyStore"
value="/usr/local/ActiveMQ/apache-activemq-5.10.0/conf/10.53.132.136.jks"/>
             <property name="keyStorePassword" value="password"/>               
          </bean>
        </property>
</bean>


<camelContext xmlns="http://camel.apache.org/schema/spring";>

 
        <route>
                
        <route>
                <from uri=&quot;activemq:topic://&lt;&lt;topic
name>>?clientId=2&amp;durableSubscriptionName=mqtt"/>

                <to uri=&quot;mqtt:bmrs?host=ssl://&lt;&lt;IP
adress>>:<<port>>&amp;qualityOfService=AtLeastOnce&amp;publishTopicName=logs&amp;userName=<<Vhost:user
name>>&amp;password=<<password>>&amp;"/>
        </route>


        <route>
                <from uri=&quot;activemq:topic://&lt;&lt;topic
name>>?clientId=3&amp;durableSubscriptionName=stomp"/>
                <to uri=&quot;stomp:queue:logs?brokerURL=ssl://&lt;&lt;IP
adress>>:<<port>>&amp;login=<<user>>&amp;passcode=<<password>>&amp;host=<<Vhost>>"/>
        </route>
</camelContext>
</beans>






--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-not-being-able-to-start-up-if-the-RabbitMQ-server-using-MQTT-or-STOMP-is-unavailable-tp5781420.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to