Class MatsTestBroker.MatsTestBroker_InVmActiveMq

All Implemented Interfaces:
Enclosing interface:

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 _brokerService
    • _connectionFactory

      protected final javax.jms.ConnectionFactory _connectionFactory
  • Method Details

    • getConnectionFactory

      public javax.jms.ConnectionFactory getConnectionFactory()
      Specified by:
      getConnectionFactory in interface MatsTestBroker
      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 createInVmActiveMqBroker()
    • createActiveMQConnectionFactory

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

      protected static void closeBroker( _brokerService)