ActiveMQComponent etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
ActiveMQComponent etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

26 Temmuz 2020 Pazar

Camel ActiveMQComponent Sınıfı

setBrokerURL metodu
Ö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;
}