Package org.openwms.wms.receiving.app
Class ReceivingAsyncConfiguration
java.lang.Object
org.openwms.wms.receiving.app.ReceivingAsyncConfiguration
@Profile("ASYNCHRONOUS")
@EnableRabbit
@Configuration
public class ReceivingAsyncConfiguration
extends Object
A ReceivingAsyncConfiguration is activated when the service uses asynchronous communication to access other services.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.amqp.core.Binding(package private) org.springframework.amqp.core.DirectExchangedlExchange(String exchangeName) (package private) org.springframework.amqp.core.Queue(package private) org.springframework.amqp.core.TopicExchangeinventoryExchange(String exchangeName) (package private) org.springframework.amqp.core.BindinginventoryProductsBinding(org.springframework.amqp.core.TopicExchange inventoryExchange, org.springframework.amqp.core.Queue inventoryProductsQueue, String routingKey) (package private) org.springframework.amqp.core.QueueinventoryProductsQueue(String queueName, String exchangeName) (package private) org.springframework.amqp.support.converter.MessageConverterorg.springframework.amqp.rabbit.core.RabbitTemplaterabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) (package private) org.springframework.amqp.core.TopicExchangereceivingExchange(String exchangeName) (package private) org.springframework.amqp.support.converter.MessageConverter(package private) org.springframework.amqp.core.BindingtuBinding(org.springframework.amqp.core.TopicExchange tuExchange, org.springframework.amqp.core.Queue tuQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchangetuExchange(String exchangeName) (package private) org.springframework.amqp.core.Queue
-
Field Details
-
BOOT_LOGGER
private static final org.slf4j.Logger BOOT_LOGGER -
POISON_MESSAGE
- See Also:
-
-
Constructor Details
-
ReceivingAsyncConfiguration
public ReceivingAsyncConfiguration()
-
-
Method Details
-
messageConverter
@ConditionalOnExpression("\'${owms.receiving.serialization}\'==\'json\'") @Bean org.springframework.amqp.support.converter.MessageConverter messageConverter() -
serializerMessageConverter
@ConditionalOnExpression("\'${owms.receiving.serialization}\'==\'barray\'") @Bean org.springframework.amqp.support.converter.MessageConverter serializerMessageConverter() -
rabbitTemplate
@Primary @Bean(name="amqpTemplate") public org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, @Autowired(required=false) org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) -
tuExchange
@Bean org.springframework.amqp.core.TopicExchange tuExchange(@Value("${owms.events.common.tu.exchange-name}") String exchangeName) -
inventoryExchange
@Bean org.springframework.amqp.core.TopicExchange inventoryExchange(@Value("${owms.events.inventory.exchange-name}") String exchangeName) -
receivingExchange
@Bean org.springframework.amqp.core.TopicExchange receivingExchange(@Value("${owms.events.receiving.exchange-name}") String exchangeName) -
tuQueue
-
inventoryProductsQueue
-
tuBinding
@Bean org.springframework.amqp.core.Binding tuBinding(@Qualifier("tuExchange") org.springframework.amqp.core.TopicExchange tuExchange, @Qualifier("tuQueue") org.springframework.amqp.core.Queue tuQueue, @Value("${owms.events.common.tu.routing-key}") String routingKey) -
inventoryProductsBinding
@Bean org.springframework.amqp.core.Binding inventoryProductsBinding(@Qualifier("inventoryExchange") org.springframework.amqp.core.TopicExchange inventoryExchange, @Qualifier("inventoryProductsQueue") org.springframework.amqp.core.Queue inventoryProductsQueue, @Value("${owms.events.inventory.products.routing-key}") String routingKey) -
dlExchange
@Bean org.springframework.amqp.core.DirectExchange dlExchange(@Value("${owms.dead-letter.exchange-name}") String exchangeName) -
dlq
@Bean org.springframework.amqp.core.Queue dlq(@Value("${owms.dead-letter.queue-name}") String queueName) -
dlBinding
-