Package org.openwms.wms.shipping.app
Class ShippingAsyncConfiguration
java.lang.Object
org.openwms.wms.shipping.app.ShippingAsyncConfiguration
@Profile("ASYNCHRONOUS")
@EnableRabbit
@Configuration
public class ShippingAsyncConfiguration
extends Object
A ShippingAsyncConfiguration is activated when the service uses asynchronous communication to access other services.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.amqp.core.Binding
(package private) org.springframework.amqp.core.DirectExchange
dlExchange
(String exchangeName) (package private) org.springframework.amqp.core.Queue
(package private) org.springframework.amqp.core.Binding
inventoryBinding
(org.springframework.amqp.core.TopicExchange inventoryExchange, org.springframework.amqp.core.Queue inventoryProductsQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchange
inventoryExchange
(String exchangeName) (package private) org.springframework.amqp.core.Queue
inventoryPickingQueue
(String queueName, String exchangeName) (package private) org.springframework.amqp.core.Queue
inventoryProductsQueue
(String queueName, String exchangeName) (package private) org.springframework.amqp.support.converter.MessageConverter
(package private) org.springframework.amqp.core.Binding
orderBinding
(org.springframework.amqp.core.TopicExchange orderExchange, org.springframework.amqp.core.Queue orderQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchange
orderExchange
(String exchangeName) (package private) org.springframework.amqp.core.Queue
orderQueue
(String queueName, String exchangeName) (package private) org.springframework.amqp.core.Binding
pickingBinding
(org.springframework.amqp.core.TopicExchange inventoryExchange, org.springframework.amqp.core.Queue inventoryPickingQueue, String routingKey) 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, org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) (package private) org.springframework.amqp.support.converter.MessageConverter
-
Field Details
-
BOOT_LOGGER
private static final org.slf4j.Logger BOOT_LOGGER -
POISON_MESSAGE
- See Also:
-
X_DEAD_LETTER_EXCHANGE
- See Also:
-
X_DEAD_LETTER_ROUTING_KEY
- See Also:
-
-
Constructor Details
-
ShippingAsyncConfiguration
public ShippingAsyncConfiguration()
-
-
Method Details
-
messageConverter
@ConditionalOnExpression("\'${owms.shipping.serialization}\'==\'json\'") @Bean org.springframework.amqp.support.converter.MessageConverter messageConverter() -
serializerMessageConverter
@ConditionalOnExpression("\'${owms.shipping.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) -
orderExchange
@Bean org.springframework.amqp.core.TopicExchange orderExchange(@Value("${owms.shipping.exchange-name}") String exchangeName) -
inventoryExchange
@Bean org.springframework.amqp.core.TopicExchange inventoryExchange(@Value("${owms.events.inventory.exchange-name}") String exchangeName) -
orderQueue
-
inventoryProductsQueue
-
inventoryPickingQueue
-
orderBinding
@Bean org.springframework.amqp.core.Binding orderBinding(@Qualifier("orderExchange") org.springframework.amqp.core.TopicExchange orderExchange, @Qualifier("orderQueue") org.springframework.amqp.core.Queue orderQueue, @Value("${owms.shipping.orders.routing-key}") String routingKey) -
inventoryBinding
@Bean org.springframework.amqp.core.Binding inventoryBinding(@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) -
pickingBinding
@Bean org.springframework.amqp.core.Binding pickingBinding(@Qualifier("inventoryExchange") org.springframework.amqp.core.TopicExchange inventoryExchange, @Qualifier("inventoryPickingQueue") org.springframework.amqp.core.Queue inventoryPickingQueue, @Value("${owms.events.inventory.picking.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
-