setBrokerURL metodu
Örnek
Spring ile şöyle yaparız
Şöyle yaparız
Örnek
Spring ile şöyle yaparız
camel:
component:
reactive-streams:
thread-pool-max-size: 5
activemq:
broker-url: "tcp://localhost:61616"
connection-factory: ActiveMQConnectionFactory
transaction-manager: JmsTransactionManager
ÖrnekŞöyle yaparız
@Bean
public ActiveMQComponent primaryAMQComponent(ConnectionFactory connectionFactory,
JmsTransactionManager jmsTransactionManager ) {
ActiveMQComponent component = new ActiveMQComponent();
component.setBrokerURL("tcp://remotehost:61616");
component.setPreserveMessageQos(true);
component.setConnectionFactory(connectionFactory);
component.setTransactionManager(jmsTransactionManager);
return component;
}
Hiç yorum yok:
Yorum Gönder