Class ConnectionFactoryClosable

java.lang.Object
org.apache.activemq.artemis.cli.factory.ConnectionFactoryClosable
All Implemented Interfaces:
AutoCloseable, javax.jms.ConnectionFactory

public class ConnectionFactoryClosable extends Object implements AutoCloseable, javax.jms.ConnectionFactory
  • Constructor Details

    • ConnectionFactoryClosable

      public ConnectionFactoryClosable(javax.jms.ConnectionFactory factory)
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • createConnection

      public javax.jms.Connection createConnection() throws javax.jms.JMSException
      Specified by:
      createConnection in interface javax.jms.ConnectionFactory
      Throws:
      javax.jms.JMSException
    • createConnection

      public javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
      Specified by:
      createConnection in interface javax.jms.ConnectionFactory
      Throws:
      javax.jms.JMSException
    • createContext

      public javax.jms.JMSContext createContext()
      Specified by:
      createContext in interface javax.jms.ConnectionFactory
    • createContext

      public javax.jms.JMSContext createContext(String userName, String password)
      Specified by:
      createContext in interface javax.jms.ConnectionFactory
    • createContext

      public javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
      Specified by:
      createContext in interface javax.jms.ConnectionFactory
    • createContext

      public javax.jms.JMSContext createContext(int sessionMode)
      Specified by:
      createContext in interface javax.jms.ConnectionFactory