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 2024/02/29 16:48:39 UTC
(camel) branch main updated: CAMEL-20477: prefer using singleton services when possible
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 8112b251c9d CAMEL-20477: prefer using singleton services when possible
8112b251c9d is described below
commit 8112b251c9d7d3e2a8a3322c26cd983842fd525d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 28 11:22:25 2024 +0100
CAMEL-20477: prefer using singleton services when possible
---
.../java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java
index 1aa85e98222..7fc12e78c16 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteRequestReplyTest.java
@@ -42,6 +42,7 @@ import org.apache.camel.test.infra.artemis.services.ArtemisServiceFactory;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import org.junit.jupiter.api.extension.RegisterExtension;
@@ -57,8 +58,9 @@ import static org.junit.jupiter.api.Assertions.fail;
@Isolated("This test creates a lot of threads")
public class JmsRouteRequestReplyTest extends CamelTestSupport {
+ @Order(1)
@RegisterExtension
- public static ArtemisService service = ArtemisServiceFactory.createVMService();
+ public static ArtemisService service = ArtemisServiceFactory.createSingletonVMService();
protected static final String REPLY_TO_DESTINATION_SELECTOR_NAME = "camelProducer";
protected static final String COMPONENT_NAME = "amq";