in src/org/apache/kandula/utility/KandulaConfiguration.java [81:148]
private KandulaConfiguration() {
String port = null;
String host = null;
InputStream in = getClass().getClassLoader().getResourceAsStream(PROPERTY_FILE);
properties = new Properties();
try {
properties.load(in);
in.close();
host = properties.getProperty(HOST_PROPERTY);
port = properties.getProperty(PORT_PROPERTY);
participantRepository = properties.getProperty(PARTICIPANT_REPO);
// if (participantRepository == null) {
// participantRepository = ".";
// }
if (properties.getProperty("tcpmon_enable").equals("true")) {
debug = "true";
}
participantAxis2Xml = properties.getProperty(PARTICIPANT_AXIS2_CONF);
// if (participantAxis2Xml == null) {
// participantAxis2Xml = "axis2.xml";
// }
kandulaListenerRepository = properties.getProperty(KANDULA_LISTENER_REPO);
// if (kandulaListenerRepository == null) {
// kandulaListenerRepository = ".";
// }
kandulaListenerAxis2Xml = properties.getProperty(KANDULA_LISTENER_AXIS2XML);
// if (kandulaListenerAxis2Xml == null) {
// kandulaListenerRepository += "/axis2.xml";
// }
coordinatorAxis2Conf = properties.getProperty(COORDINATOR_AXIS2XML);
// if (coordinatorAxis2Conf == null) {
// coordinatorAxis2Conf = "axis2.xml";
// }
coordinatorRepo = properties.getProperty(COORDINATOR_REPOSITORY);
// if (coordinatorRepo == null) {
// coordinatorAxis2Conf = ".";
// }
kandulaListenerPort = properties.getProperty(LISTENER_PORT);
if (kandulaListenerPort == null) {
kandulaListenerPort = "5050";
}
if (port == null) {
port = "8080";
}
if (host == null) {
host = InetAddress.getLocalHost().getHostAddress();
}
location = "http://" + host + ":" + port;
System.out.println(location);
} catch (Exception e) {
if (e instanceof RuntimeException)
throw (RuntimeException) e;
else
throw new RuntimeException(e);
}
}