Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thinkmicroservices/234d4c3ae87fa0202a6392db04dd72b9 to your computer and use it in GitHub Desktop.

Select an option

Save thinkmicroservices/234d4c3ae87fa0202a6392db04dd72b9 to your computer and use it in GitHub Desktop.
// 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