Created
March 19, 2020 19:39
-
-
Save thinkmicroservices/234d4c3ae87fa0202a6392db04dd72b9 to your computer and use it in GitHub Desktop.
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
| // create the event | |
| AccountRegisteredEvent accountRegisteredEvent = new AccountRegisteredEvent(user.getAccountId(), email, firstName, middleName, lastName); | |
| // set the message type and publish the AccountRegisteredEvent | |
| this.accountEventSource.accountEvents() | |
| .send(MessageBuilder.withPayload(accountRegisteredEvent) | |
| .setHeader("type", "ACCOUNT_REGISTERED_EVENT").build()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment