You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/12/21 17:27:24 UTC

(camel) branch main updated: CAMEL-20269: fixed a concurrency issue launching the embedded Artemis broker

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b6944b9b166 CAMEL-20269: fixed a concurrency issue launching the embedded Artemis broker
b6944b9b166 is described below

commit b6944b9b166d1f24e9e0055ea78f6a08d222a84d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Dec 21 11:32:31 2023 -0300

    CAMEL-20269: fixed a concurrency issue launching the embedded Artemis broker
---
 .../test/infra/artemis/services/AbstractArtemisEmbeddedService.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java b/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java
index 8a8dc969013..058344c3581 100644
--- a/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java
+++ b/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/AbstractArtemisEmbeddedService.java
@@ -100,7 +100,7 @@ public abstract class AbstractArtemisEmbeddedService implements ArtemisService,
     }
 
     @Override
-    public void initialize() {
+    public synchronized void initialize() {
         try {
             if (embeddedBrokerService.getActiveMQServer() == null || !embeddedBrokerService.getActiveMQServer().isStarted()) {
                 embeddedBrokerService.start();