Class XAJmsConnection

    • Field Detail

      • connection

        protected transient javax.jms.XAConnection connection
    • Constructor Detail

      • XAJmsConnection

        public XAJmsConnection()

        Create a new instance. Default settings are:

        • vendor-implementation - StandardJndiImplementation
        • username - "" (i.e. blank)

    • Method Detail

      • currentConnection

        public javax.jms.XAConnection currentConnection()
      • createXASession

        public javax.jms.XASession createXASession()
                                            throws javax.jms.JMSException

        Creates a new Session on the underlying JMS Connection.

        Returns:
        a new XASession
        Throws:
        javax.jms.JMSException - if any occurs
      • obtainConnectionFactory

        public javax.jms.XAConnectionFactory obtainConnectionFactory()
                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getBrokerDetailsForLogging

        public java.lang.String getBrokerDetailsForLogging()
      • createConnection

        protected void createConnection​(javax.jms.XAConnectionFactory factory)
                                 throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • getUserName

        public java.lang.String getUserName()

        Returns the broker user name.

        Returns:
        the broker user name
      • setUserName

        public void setUserName​(java.lang.String s)

        Sets the broker user name.

        Parameters:
        s - the broker user name
      • getPassword

        public java.lang.String getPassword()

        Sets the broker password.

        Returns:
        the broker password
      • setPassword

        public void setPassword​(java.lang.String s)

        Sets the broker password.

        In additional to plain text passwords, the passwords can also be encoded using the appropriate Password

        Parameters:
        s - the broker password
      • getClientId

        public java.lang.String getClientId()

        Sets the broker connection client ID.

        Returns:
        the broker connection client ID
      • setClientId

        public void setClientId​(java.lang.String s)

        Returns the broker connection client ID.

        Parameters:
        s - the broker connection client ID
      • getVendorImplementation

        public XAVendorImplementation getVendorImplementation()

        Sets the VendorImplementation to use.

        Returns:
        the VendorImplementation to use
      • setVendorImplementation

        public void setVendorImplementation​(XAVendorImplementation imp)

        Returns the VendorImplementation to use.

        Parameters:
        imp - the VendorImplementation to use
      • getAdditionalDebug

        public java.lang.Boolean getAdditionalDebug()
      • setAdditionalDebug

        public void setAdditionalDebug​(java.lang.Boolean b)
        Whether or not to generate additional TRACE level debug when attempting connections.
        Parameters:
        b - true to enable additional logging; default false.
      • additionalDebug

        protected boolean additionalDebug()