EventHandler declaring UnitOfWork as parameter doesn't match incoming message #477
Labels
Priority 1: Must
Highest priority. A release cannot be made if this issue isn’t resolved.
Status: Resolved
Use to signal that work on this issue is done.
Type: Bug
Use to signal issues that describe a bug within the system.
Milestone
When using a TrackingProcessor, a UnitOfWork is only started when a matching handler has been found. When a handler declares a UnitOfWork as parameter, it will only match if there is an active Unit of Work.
Instead, the parameterResolver should always match, as the ParameterResolver may assume that any Axon component will start a Unit of Work before invoking a handler. In case any other component invokes the handler, without starting a Unit of Work, the parameter will resolve to
null
.The text was updated successfully, but these errors were encountered: