Class ConnectionFactory

    • Constructor Detail

      • ConnectionFactory

        public ConnectionFactory()
        Constructs a ConnectionFactory with the default configuration.
      • ConnectionFactory

        protected ConnectionFactory​(java.lang.String defaultsBase)
        Constructs a ConnectionFactory with the specified configuration.
    • Method Detail

      • createQueueConnection

        public jakarta.jms.QueueConnection createQueueConnection()
                                                          throws jakarta.jms.JMSException
        Creates a Queue Connection with the default user identity. The default user identity is defined by the ConnectionFactory properties imqDefaultUsername and imqDefaultPassword
        Returns:
        a newly created Queue Connection.
        Throws:
        jakarta.jms.JMSException - if a JMS error occurs.
        See Also:
        ConnectionConfiguration.imqDefaultUsername, ConnectionConfiguration.imqDefaultPassword
      • createQueueConnection

        public jakarta.jms.QueueConnection createQueueConnection​(java.lang.String username,
                                                                 java.lang.String password)
                                                          throws jakarta.jms.JMSException
        Creates a Queue Connection with a specified user identity.
        Parameters:
        username - the caller's user name
        password - the caller's password
        Returns:
        a newly created queue connection.
        Throws:
        jakarta.jms.JMSException - if a JMS error occurs.
      • createTopicConnection

        public jakarta.jms.TopicConnection createTopicConnection()
                                                          throws jakarta.jms.JMSException
        Creates a Topic Connection with the default user identity. The default user identity is defined by the ConnectionFactory properties imqDefaultUsername and imqDefaultPassword
        Returns:
        a newly created Topic Connection.
        Throws:
        jakarta.jms.JMSException - if a JMS error occurs.
        See Also:
        ConnectionConfiguration.imqDefaultUsername, ConnectionConfiguration.imqDefaultPassword
      • createTopicConnection

        public jakarta.jms.TopicConnection createTopicConnection​(java.lang.String username,
                                                                 java.lang.String password)
                                                          throws jakarta.jms.JMSException
        Creates a Topic Connection with a specified user identity.
        Parameters:
        username - the caller's user name
        password - the caller's password
        Returns:
        a newly created topic connection.
        Throws:
        jakarta.jms.JMSException - if a JMS error occurs.
      • getReference

        public javax.naming.Reference getReference()
        Returns the reference to this object.
        Specified by:
        getReference in interface javax.naming.Referenceable
        Returns:
        The Reference Object that can be used to reconstruct this object