Ignore:
Timestamp:
05/23/13 21:37:28 (11 years ago)
Author:
stoda
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/objectmq/src/omq/common/util/OmqConnectionFactory.java

    r14 r22  
    1717public class OmqConnectionFactory {
    1818        private static Connection connection;
     19        private static int connectionTimeout = 2 * 1000;
    1920
    2021        public static void init(Properties env) throws KeyManagementException, NoSuchAlgorithmException, IOException {
     
    4142                factory.setHost(host);
    4243                factory.setPort(port);
     44                factory.setConnectionTimeout(connectionTimeout);
    4345                if (ssl) {
    4446                        factory.useSslProtocol();
Note: See TracChangeset for help on using the changeset viewer.