Skip to content

Commit

Permalink
fix: Fix ClassNotFound in JMS connection factory creator
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Mar 26, 2020
1 parent db265ed commit e7b7e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public ConnectionFactory create(Map<String, String> properties) {

@Override
public boolean supports(Class<?> type) {
return ActiveMQConnectionFactory.class.equals(type);
return "org.apache.activemq.ActiveMQConnectionFactory".equals(type.getName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -53,6 +51,6 @@ public ConnectionFactory create(Map<String, String> properties) {

@Override
public boolean supports(Class<?> type) {
return ActiveMQConnectionFactory.class.equals(type);
return "org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory".equals(type.getName());
}
}

0 comments on commit e7b7e1c

Please sign in to comment.