Class ActiveMQRAConnectionFactoryImpl

  • All Implemented Interfaces:
    java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XATopicConnectionFactory, javax.naming.Referenceable, javax.resource.Referenceable, ActiveMQRAConnectionFactory

    public class ActiveMQRAConnectionFactoryImpl
    extends java.lang.Object
    implements ActiveMQRAConnectionFactory
    The connection factory
    See Also:
    Serialized Form
    • Constructor Detail

      • ActiveMQRAConnectionFactoryImpl

        public ActiveMQRAConnectionFactoryImpl​(ActiveMQRAManagedConnectionFactory mcf,
                                               javax.resource.spi.ConnectionManager cm)
        Constructor
        Parameters:
        mcf - The managed connection factory
        cm - The connection manager
    • Method Detail

      • setReference

        public void setReference​(javax.naming.Reference reference)
        Set the reference
        Specified by:
        setReference in interface javax.resource.Referenceable
        Parameters:
        reference - The reference
      • getReference

        public javax.naming.Reference getReference()
        Get the reference
        Specified by:
        getReference in interface javax.naming.Referenceable
        Returns:
        The reference
      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection()
                                                        throws javax.jms.JMSException
        Create a queue connection
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection​(java.lang.String userName,
                                                               java.lang.String password)
                                                        throws javax.jms.JMSException
        Create a queue connection
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createTopicConnection

        public javax.jms.TopicConnection createTopicConnection()
                                                        throws javax.jms.JMSException
        Create a topic connection
        Specified by:
        createTopicConnection in interface javax.jms.TopicConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createTopicConnection

        public javax.jms.TopicConnection createTopicConnection​(java.lang.String userName,
                                                               java.lang.String password)
                                                        throws javax.jms.JMSException
        Create a topic connection
        Specified by:
        createTopicConnection in interface javax.jms.TopicConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createConnection

        public javax.jms.Connection createConnection()
                                              throws javax.jms.JMSException
        Create a connection
        Specified by:
        createConnection in interface javax.jms.ConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createConnection

        public javax.jms.Connection createConnection​(java.lang.String userName,
                                                     java.lang.String password)
                                              throws javax.jms.JMSException
        Create a connection
        Specified by:
        createConnection in interface javax.jms.ConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXAQueueConnection

        public javax.jms.XAQueueConnection createXAQueueConnection()
                                                            throws javax.jms.JMSException
        Create a XA queue connection
        Specified by:
        createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXAQueueConnection

        public javax.jms.XAQueueConnection createXAQueueConnection​(java.lang.String userName,
                                                                   java.lang.String password)
                                                            throws javax.jms.JMSException
        Create a XA queue connection
        Specified by:
        createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXATopicConnection

        public javax.jms.XATopicConnection createXATopicConnection()
                                                            throws javax.jms.JMSException
        Create a XA topic connection
        Specified by:
        createXATopicConnection in interface javax.jms.XATopicConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXATopicConnection

        public javax.jms.XATopicConnection createXATopicConnection​(java.lang.String userName,
                                                                   java.lang.String password)
                                                            throws javax.jms.JMSException
        Create a XA topic connection
        Specified by:
        createXATopicConnection in interface javax.jms.XATopicConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXAConnection

        public javax.jms.XAConnection createXAConnection()
                                                  throws javax.jms.JMSException
        Create a XA connection
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createXAConnection

        public javax.jms.XAConnection createXAConnection​(java.lang.String userName,
                                                         java.lang.String password)
                                                  throws javax.jms.JMSException
        Create a XA connection
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Parameters:
        userName - The user name
        password - The password
        Returns:
        The connection
        Throws:
        javax.jms.JMSException - Thrown if the operation fails
      • createContext

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

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

        public javax.jms.JMSContext createContext​(java.lang.String userName,
                                                  java.lang.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
      • createXAContext

        public javax.jms.XAJMSContext createXAContext()
        Specified by:
        createXAContext in interface javax.jms.XAConnectionFactory
      • createXAContext

        public javax.jms.XAJMSContext createXAContext​(java.lang.String userName,
                                                      java.lang.String password)
        Specified by:
        createXAContext in interface javax.jms.XAConnectionFactory
      • getDefaultFactory

        public org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory getDefaultFactory()
                                                                                           throws javax.resource.ResourceException
        Specified by:
        getDefaultFactory in interface ActiveMQRAConnectionFactory
        Throws:
        javax.resource.ResourceException