Class CredentialInjectionConnectionFactoryWrapper

    • Field Detail

      • delegate

        protected final javax.jms.ConnectionFactory delegate
      • username

        protected final String username
      • password

        protected final String password
    • Constructor Detail

      • CredentialInjectionConnectionFactoryWrapper

        public CredentialInjectionConnectionFactoryWrapper​(javax.jms.ConnectionFactory delegate,
                                                           String username,
                                                           String password)
    • Method Detail

      • 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 u,
                                                     String p)
                                              throws javax.jms.JMSException
        Specified by:
        createConnection in interface javax.jms.ConnectionFactory
        Throws:
        javax.jms.JMSException