Interface VendorImplementation

    • Method Detail

      • createConnectionFactory

        javax.jms.ConnectionFactory createConnectionFactory()
                                                     throws javax.jms.JMSException
        Returns a ConnectionFactory.
        Returns:
        an instance of ConnectionFactory
        Throws:
        javax.jms.JMSException - if any occurs
      • createConnection

        default javax.jms.Connection createConnection​(javax.jms.ConnectionFactory factory,
                                                      JmsConnectionConfig cfg)
                                               throws java.lang.Exception
        Create a connection based on the factory and configuration.

        If the vendor in question doesn't support the JMS 1.1 API specification (i.e. ConnectionFactory doesn't expose a createConnection() method, this method should be explicitly overriden by the concrete implementations to do the right thing.

        Parameters:
        factory - the jms connection factory.
        cfg - the connection configuration (i.e. username/password)
        Returns:
        a javax.jms.Connection instance
        Throws:
        java.lang.Exception - on exception
        Implementation Note:
        the default implementation just calls createConnection() or createConnection(String,String) depending on whether a username is configured or not; this should be appropriate for all JMS 1.1 specifications.