Class TransportUnitEventPropagator

java.lang.Object
org.openwms.common.transport.TransportUnitEventPropagator

@Profile("ASYNCHRONOUS") public class TransportUnitEventPropagator extends Object
A TransportUnitEventPropagator.
Author:
Heiko Scherrer
  • Field Details

    • amqpTemplate

      private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
    • exchangeName

      private final String exchangeName
    • mapper

      private final TransportUnitMapper mapper
  • Constructor Details

    • TransportUnitEventPropagator

      public TransportUnitEventPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, @Value("${owms.commands.common.tu.exchange-name}") String exchangeName, TransportUnitMapper mapper)
  • Method Details

    • onEvent

      @Measured @TransactionalEventListener(fallbackExecution=true) @Transactional(propagation=REQUIRES_NEW) public void onEvent(TransportUnitEvent event)