예제 #1
0
  public static Properties getJmsProperties(String propertyFile) throws IOException {
    InputStream is = ClassHelper.getResourceAsStream(propertyFile, JmsTestUtils.class);

    Properties p = new Properties();
    p.load(is);
    is.close();

    fixProviderUrl(p);
    return p;
  }
예제 #2
0
  public static Properties getJmsProperties() throws IOException {
    InputStream is = ClassHelper.getResourceAsStream(JMS_PROPERTIES, JmsTestUtils.class);

    String jmsProps = OPEN_JMS_PROPERTIES;
    if (is != null) {
      Properties p = new Properties();
      p.load(is);
      jmsProps = p.getProperty("jms.provider.properties", OPEN_JMS_PROPERTIES);
      is.close();
    }
    return getJmsProperties(jmsProps);
  }