Class JMSUtil


  • public class JMSUtil
    extends Object
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • JMSUtil

        public JMSUtil()
    • Method Detail

      • createConnection

        public static Connection createConnection​(ConnectionFactory connFactory,
                                                  String user,
                                                  String password,
                                                  int waitSecs)
                                           throws JMSException
        Performs a JMS createConnection and will wait supplied number of seconds before giving up. This gives a starting server time to start during IT tests.
        Parameters:
        connFactory -
        user -
        password -
        waitSecs -
        Returns:
        connection created. Caller must close.
        Throws:
        JMSException