FINERACT-1694-Asynchronous-Message-OutChannel-Rename
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
40b6eb50f6
commit
44cab78cbb
+3
-3
@@ -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()))
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import org.springframework.integration.config.EnableIntegration;
|
||||
public class ExternalEventProducerConfiguration {
|
||||
|
||||
@Bean
|
||||
public DirectChannel outboundRequests() {
|
||||
public DirectChannel outboundRequestsEvents() {
|
||||
return new DirectChannel();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user