
io.fabric8.demo.activemq.ActiveMQProducerFactory.class Maven / Gradle / Ivy
???? 3 ? 0io/fabric8/demo/activemq/ActiveMQProducerFactory $io/fabric8/api/scr/AbstractComponent ActiveMQProducerFactory.java ,Lorg/apache/felix/scr/annotations/Component; name io.fabric8.example.mq.producer label ActiveMQ Producer Factory configurationFactory immediate metatype LOG Lorg/slf4j/Logger; DEFAULT_DESTINATION Ljava/lang/String; example producer Lio/fabric8/mq/ProducerThread; producerService Lio/fabric8/mq/ActiveMQService; connectionFactory /Lorg/apache/activemq/ActiveMQConnectionFactory; ,Lorg/apache/felix/scr/annotations/Reference; referenceInterface ()V
this 2Lio/fabric8/demo/activemq/ActiveMQProducerFactory; activate (Ljava/util/Map;)V java/lang/Exception % +Lorg/apache/felix/scr/annotations/Activate; updateInternal ( $
) activateComponent +
,
properties $Ljava/util/Map; Ljava/util/Map; modified +Lorg/apache/felix/scr/annotations/Modified; deactivateInternal 3
4
configuration
deactivate -Lorg/apache/felix/scr/annotations/Deactivate; deactivateComponent 9
: < Stopping producer > org/slf4j/Logger @ info (Ljava/lang/String;)V B C A D F io/fabric8/mq/ProducerThread H
setRunning (Z)V J K
I L N io/fabric8/mq/ActiveMQService P stop R
Q S Producer stopped U javax/jms/JMSException W Starting producer Y [ 2(Lorg/apache/activemq/ActiveMQConnectionFactory;)V ]
Q ^ setMaxAttempts (I)V ` a
Q b start d
Q e destination g
java/util/Map i get &(Ljava/lang/Object;)Ljava/lang/Object; k l j m java/lang/String o /(Lio/fabric8/mq/JMSService;Ljava/lang/String;)V q
I r setSleep t a
I u
I e Producer started x Cannot start producer z *(Ljava/lang/String;Ljava/lang/Throwable;)V |
&