Created
December 7, 2019 23:05
-
-
Save mmornati/6fcac7d73575ff4fa42b68fb3a3e9591 to your computer and use it in GitHub Desktop.
Operation Event Lister
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@AllArgsConstructor | |
public class OperationEventListener { | |
private final ICreateOperationMessage createOperationMessage; | |
@TransactionalEventListener | |
public void processTransactionDetailEvent(OperationEvent event) { | |
ICreateOperationMessage message = createOperationMessage.createMessage(event.getOperationId()); | |
createOperationMessage.sendMessage(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment