Closed MaLub closed 1 year ago
Thanks for reporting @MaLub - is this a blocker for you? We plan to adjust the auto configuration mechanism of Spring Zeebe allowing a better control over which beans are loaded or not (https://github.com/camunda-community-hub/spring-zeebe/issues/275) - so I would love to wait for this before looking into this specifically.
Hello @berndruecker thank you for your reply. No it doesn't block me. I've fixed it this way: (set @Primary-Annotation)
@Component
@Primary
public class BenchmarkStartPiExceptionHandlingStrategy extends DefaultCommandExceptionHandlingStrategy {
I've run in the next problem and have to set the default.worker-name in application.properties
zeebe.client.worker.default-name="foo"
Know it works for me :)
@Primary
workaround is now merged in the main branch (see c199ff9). Once camunda-community-hub/spring-zeebe#275 is done we can remove it again.
I looked at this now and just realized, that the problem is that there are actually two beans of the same type WITHIN the benchmark project - a situation Spring Zeebe is not built to support - at least at the moment. So I think @Primary
should be OK for now here - I just would add it on the JobCompletion one in this case - as this would be used by Spring Zeebe if nothing else is defined. But it should not make any difference any way
Starting current main version (either per mvn locally or per docker) results to an error