Package org.openwms.tms.routing.app
Class RoutingAsyncConfiguration
java.lang.Object
org.openwms.tms.routing.app.RoutingAsyncConfiguration
@Profile("ASYNCHRONOUS")
@EnableRabbit
@Configuration
public class RoutingAsyncConfiguration
extends Object
A RoutingAsyncConfiguration is activated when the service uses asynchronous communication to access other services.
- Author:
- Heiko Scherrer
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BindinglgBinding(org.springframework.amqp.core.TopicExchange lgExchange, org.springframework.amqp.core.Queue lgQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchangelgExchange(String exchangeName) (package private) org.springframework.amqp.core.Queue(package private) org.springframework.amqp.core.BindinglocBinding(org.springframework.amqp.core.TopicExchange locExchange, org.springframework.amqp.core.Queue locQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchangelocExchange(String exchangeName) (package private) org.springframework.amqp.core.Queue(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.support.converter.MessageConverter(package private) org.springframework.amqp.core.BindingtmsRequestsBinding(org.springframework.amqp.core.TopicExchange tmsRequestsExchange, org.springframework.amqp.core.Queue tmsRequestsQueue, String routingKey) (package private) org.springframework.amqp.core.TopicExchangetmsRequestsExchange(String exchangeName) (package private) org.springframework.amqp.core.QueuetmsRequestsQueue(String queueName, String exchangeName) 
- 
Field Details- 
BOOT_LOGGERprivate static final org.slf4j.Logger BOOT_LOGGER
- 
X_DEAD_LETTER_EXCHANGE- See Also:
 
- 
X_DEAD_LETTER_ROUTING_KEY- See Also:
 
- 
POISON_MESSAGE- See Also:
 
 
- 
- 
Constructor Details- 
RoutingAsyncConfigurationpublic RoutingAsyncConfiguration()
 
- 
- 
Method Details- 
messageConverter@ConditionalOnExpression("\'${owms.routing.serialization}\'==\'json\'") @Bean org.springframework.amqp.support.converter.MessageConverter messageConverter()
- 
serializerMessageConverter@ConditionalOnExpression("\'${owms.routing.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) 
- 
tmsRequestsExchange@Bean org.springframework.amqp.core.TopicExchange tmsRequestsExchange(@Value("${owms.requests.routing.to.exchange-name}") String exchangeName) 
- 
tmsRequestsQueue
- 
tmsRequestsBinding@Bean org.springframework.amqp.core.Binding tmsRequestsBinding(org.springframework.amqp.core.TopicExchange tmsRequestsExchange, org.springframework.amqp.core.Queue tmsRequestsQueue, @Value("${owms.requests.routing.to.routing-key}") String routingKey) 
- 
locExchange@Bean org.springframework.amqp.core.TopicExchange locExchange(@Value("${owms.events.common.loc.exchange-name}") String exchangeName) 
- 
locQueue
- 
locBinding@Bean org.springframework.amqp.core.Binding locBinding(org.springframework.amqp.core.TopicExchange locExchange, org.springframework.amqp.core.Queue locQueue, @Value("${owms.events.common.loc.routing-key}") String routingKey) 
- 
lgExchange@Bean org.springframework.amqp.core.TopicExchange lgExchange(@Value("${owms.events.common.lg.exchange-name}") String exchangeName) 
- 
lgQueue
- 
lgBinding@Bean org.springframework.amqp.core.Binding lgBinding(org.springframework.amqp.core.TopicExchange lgExchange, org.springframework.amqp.core.Queue lgQueue, @Value("${owms.events.common.lg.routing-key}") String routingKey) 
- 
dlExchange@Bean org.springframework.amqp.core.DirectExchange dlExchange(@Value("${owms.routing.dead-letter.exchange-name}") String exchangeName) 
- 
dlq@Bean org.springframework.amqp.core.Queue dlq(@Value("${owms.routing.dead-letter.queue-name}") String queueName) 
- 
dlBinding
 
-