From e7b7e1c869ca716370377b422f64c33d3978761c Mon Sep 17 00:00:00 2001 From: Christoph Deppisch Date: Thu, 26 Mar 2020 14:07:48 +0100 Subject: [PATCH] fix: Fix ClassNotFound in JMS connection factory creator --- .../activemq/ActiveMQConnectionFactoryCreator.java | 2 +- .../ActiveMQArtemisConnectionFactoryCreator.java | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/ActiveMQConnectionFactoryCreator.java b/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/ActiveMQConnectionFactoryCreator.java index 1b97b48e..1df43a09 100644 --- a/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/ActiveMQConnectionFactoryCreator.java +++ b/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/ActiveMQConnectionFactoryCreator.java @@ -49,6 +49,6 @@ public ConnectionFactory create(Map properties) { @Override public boolean supports(Class type) { - return ActiveMQConnectionFactory.class.equals(type); + return "org.apache.activemq.ActiveMQConnectionFactory".equals(type.getName()); } } diff --git a/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/artemis/ActiveMQArtemisConnectionFactoryCreator.java b/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/artemis/ActiveMQArtemisConnectionFactoryCreator.java index d88c5676..bc698b5a 100644 --- a/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/artemis/ActiveMQArtemisConnectionFactoryCreator.java +++ b/java/steps/yaks-jms/src/main/java/org/citrusframework/yaks/jms/connection/activemq/artemis/ActiveMQArtemisConnectionFactoryCreator.java @@ -17,15 +17,13 @@ package org.citrusframework.yaks.jms.connection.activemq.artemis; -import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory; - -import org.citrusframework.yaks.jms.connection.ConnectionFactoryCreator; - import javax.jms.ConnectionFactory; import javax.jms.JMSException; - import java.util.Map; +import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory; +import org.citrusframework.yaks.jms.connection.ConnectionFactoryCreator; + public class ActiveMQArtemisConnectionFactoryCreator implements ConnectionFactoryCreator { @Override @@ -53,6 +51,6 @@ public ConnectionFactory create(Map properties) { @Override public boolean supports(Class type) { - return ActiveMQConnectionFactory.class.equals(type); + return "org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory".equals(type.getName()); } }