Changeset 51


Ignore:
Timestamp:
06/19/13 16:30:19 (11 years ago)
Author:
stoda
Message:
 
Location:
trunk/src
Files:
3 deleted
1 edited
1 moved

Legend:

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

    r49 r51  
    3939                        } catch (Exception e) {
    4040                                logger.error(e);
    41                                 long milis = Long.parseLong(env.getProperty(ParameterQueue.RETRY_TIME_CONNECTION, "2000"));
     41                                long milis = 2000;
     42                                if (env != null) {
     43                                        milis = Long.parseLong(env.getProperty(ParameterQueue.RETRY_TIME_CONNECTION, "2000"));
     44                                }
    4245                                Thread.sleep(milis);
    4346                        }
  • trunk/src/test/java/omq/test/calculator/ClientTest.java

    r47 r51  
    1818
    1919@RunWith(value = Parameterized.class)
    20 public class ParameterizedClient {
     20public class ClientTest {
    2121
    2222        private static Calculator remoteCalc;
    2323        private static Calculator remoteCalc2;
    2424
    25         public ParameterizedClient(String type) throws Exception {
     25        public ClientTest(String type) throws Exception {
    2626                Properties env = new Properties();
    2727                env.setProperty(ParameterQueue.USER_NAME, "guest");
Note: See TracChangeset for help on using the changeset viewer.