FINERACT-1694-Asynchronous-Message-OutChannel-Rename

This commit is contained in:
Ruchi Dhamankar
2022-10-03 22:35:16 +02:00
committed by Aleksandar Vidakovic
parent 40b6eb50f6
commit 44cab78cbb
4 changed files with 12 additions and 12 deletions
@@ -39,14 +39,14 @@ import org.springframework.integration.jms.dsl.Jms;
public class ExternalEventJMSProducerConfiguration {
@Autowired
private DirectChannel outboundRequests;
private DirectChannel outboundRequestsEvents;
@Autowired
private FineractProperties fineractProperties;
@Bean
public IntegrationFlow outboundFlow(ActiveMQConnectionFactory connectionFactory) {
return IntegrationFlows.from(outboundRequests) //
public IntegrationFlow outboundFlowEvents(ActiveMQConnectionFactory connectionFactory) {
return IntegrationFlows.from(outboundRequestsEvents) //
.log(LoggingHandler.Level.DEBUG) //
.handle(Jms.outboundAdapter(connectionFactory)
.destination(fineractProperties.getEvents().getExternal().getProducer().getJms().getEventQueueName()))
@@ -30,7 +30,7 @@ import org.springframework.integration.config.EnableIntegration;
public class ExternalEventProducerConfiguration {
@Bean
public DirectChannel outboundRequests() {
public DirectChannel outboundRequestsEvents() {
return new DirectChannel();
}
}
@@ -27,6 +27,6 @@ import org.springframework.integration.annotation.MessagingGateway;
@ConditionalOnProperty(value = "fineract.events.external.enabled", havingValue = "true")
public interface ExternalEventProducer {
@Gateway(requestChannel = "outboundRequests", replyTimeout = 2, requestTimeout = 200)
@Gateway(requestChannel = "outboundRequestsEvents", replyTimeout = 2, requestTimeout = 200)
void sendEvent(byte[] message) throws AcknowledgementTimeoutException;
}