<commit_before>package com.softwaremill.mqperf.mq

import javax.jms.ConnectionFactory

import com.softwaremill.mqperf.config.TestConfig
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory

class ArtemisMq(val testConfig: TestConfig) extends JmsMq {

  override lazy val connectionFactory: ConnectionFactory = {
    val hosts = "(" + testConfig.brokerHosts.map(h => s"tcp://$h:61616").mkString(",") + ")?ha=true"
    val cf = new ActiveMQConnectionFactory(hosts)
    cf.setUseTopologyForLoadBalancing(false)
    cf
  }
}<commit_msg>Fixes #57 Re-enable just client load balancing for tests<commit_after>package com.softwaremill.mqperf.mq

import javax.jms.ConnectionFactory

import com.softwaremill.mqperf.config.TestConfig
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory

class ArtemisMq(val testConfig: TestConfig) extends JmsMq {

  override lazy val connectionFactory: ConnectionFactory = {
    val hosts = "(" + testConfig.brokerHosts.map(h => s"tcp://$h:61616").mkString(",") + ")?ha=true"
    val cf = new ActiveMQConnectionFactory(hosts)
    cf.setUseTopologyForLoadBalancing(false)
    cf.setConnectionLoadBalancingPolicyClassName("org.apache.activemq.artemis.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy");
    cf
  }
}
{'fraction_non_alphanumeric': 0.10973724884080371, 'fraction_numerical': 0.00927357032457496, 'mean_word_length': 5.675257731958763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3399348', 'n_tokens_mistral': 426, 'n_tokens_neox': 401, 'n_words': 69}