Outbox Dispatch Tx
Transactional helpers for KafkaOutboxProcessor.
Extracted into a separate bean so that calls through the Spring proxy actually open the requested transaction — @Transactional methods that are self-invoked on the same instance bypass the proxy and silently run without a transaction.
Functions
Link copied to clipboard
@Transactional
Short transaction: select + lock a batch with FOR UPDATE SKIP LOCKED and transition each row to PROCESSING. Commits immediately, freeing the lock so other pollers can proceed.
Link copied to clipboard
Fresh REQUIRES_NEW transaction that marks message as successfully published. Called after the Kafka broker has acknowledged to send.
Link copied to clipboard
@Transactional(propagation = Propagation.REQUIRES_NEW )
Fresh REQUIRES_NEW transaction that either: