Package ejava.util.jms
Class JMSUtil
- java.lang.Object
-
- ejava.util.jms.JMSUtil
-
public class JMSUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description JMSUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Connection
createConnection(ConnectionFactory connFactory, String user, String password, int waitSecs)
Performs a JMS createConnection and will wait supplied number of seconds before giving up.
-
-
-
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
-
-