--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rahgu,
@ResponseStatus(HttpStatus.OK)
@RequestMapping(value = "/{id}/deactivate", method = RequestMethod.GET)
public void deactivate(@PathVariable("id") String id) {
FutureCallback callback = new FutureCallback();
DeactivateGroupCommand deactivateGroupCommand = new DeactivateGroupCommand(id);
CommandMessage<DeactivateGroupCommand> message = GenericCommandMessage.asCommandMessage(deactivateGroupCommand);
this.commandGateway.send(message, callback);
System.out.println(message.getIdentifier());
}
But messageIdentifier is not stored with the event so whats the benefit of sending commandId to the client?
@Bean
public CommandHandlerInterceptor commandHandlerInterceptor() {
AuditingInterceptor auditingInterceptor = new AuditingInterceptor();
auditingInterceptor.setAuditDataProvider(new CorrelationAuditDataProvider());
// elided...
return auditingInterceptor;
}
@EventHandler
public void handleEvent(GreetingUpdated ev, MetaData m) {
Message payload = new Message(ev, m);
log.info("Publishing websocket message: {}", payload);
this.messagingTemplate.convertAndSend("/topic/greeting", payload);
}