Hi Allard,
In one of our requirement, we need to check if the aggregate exists and current state of aggregate before executing other commands on that. There are some times due to concurrency of requests initial command which is responsible for creation of aggregate and subsequent command which need to work on this aggregate work in parallel. But while loading the aggregate from the repository we get this exception
java.lang.IllegalStateException: No UnitOfWork is currently started for this thread.
Please suggest.
Thanks,
Vijaya