Hi,
I want to implement a service, which on startup should send Commands to the CommandGateway when it is started for the first time, but I have trouble with it, as I try doing it with a @PostConstruct method, but that is called before the CommandHandlers are registered resulting in a org.axonframework.commandhandling.NoHandlerForCommandException.
Is there a way to “wait” for the application to be done with handler registration before I start sending commands to the CommandGateway?
Kind regards,
Lars Karschen