Class MatsTestBroker.MatsTestBroker_InVmActiveMq

java.lang.Object
io.mats3.test.broker.MatsTestBroker.MatsTestBroker_InVmActiveMq
All Implemented Interfaces:
MatsTestBroker
Enclosing interface:
MatsTestBroker

public static class MatsTestBroker.MatsTestBroker_InVmActiveMq extends Object implements MatsTestBroker
Creates an in-vm ActiveMQ no matter what the properties says.
  • Field Details

    • _brokerService

      protected final org.apache.activemq.broker.BrokerService _brokerService
    • _connectionFactory

      protected final javax.jms.ConnectionFactory _connectionFactory
  • Method Details

    • getConnectionFactory

      public javax.jms.ConnectionFactory getConnectionFactory()
      Specified by:
      getConnectionFactory in interface MatsTestBroker
      Returns:
      the ConnectionFactory connecting to the broker.
    • close

      public void close()
      Description copied from interface: MatsTestBroker
      Stops the created in-vm broker, if it was created (read MatsTestBroker.SYSPROP_MATS_TEST_BROKERURL). Called "close()" to hook into the default Spring lifecycle if it is instantiated as a Spring Bean.
      Specified by:
      close in interface MatsTestBroker
    • createInVmActiveMqBroker

      protected static org.apache.activemq.broker.BrokerService createInVmActiveMqBroker()
    • createActiveMQConnectionFactory

      protected static javax.jms.ConnectionFactory createActiveMQConnectionFactory(String brokerUrl)
    • closeBroker

      protected static void closeBroker(org.apache.activemq.broker.BrokerService _brokerService)