public JPortInfo[] getConfig() throws Exception {
    JPortInfo[] configInfo=null;
    Vector lines = new Vector();
    br = new BufferedReader(new FileReader(configFile));
    line=null;
    while ((line=br.readLine()) != null) {
      if (!line.trim().startsWith("#") &&
          !line.trim().equals("")) {
        lines.add(line);
      }
    }
    configInfo = new JPortInfo[lines.size()];
    for (int i=0; i<lines.size(); i++) {
      configInfo[i] = new JPortInfo();
    }
    for (int i=0; i<lines.size(); i++) {
      st = new StringTokenizer((String)lines.elementAt(i));
      while (st.hasMoreTokens()) {
        configInfo[i].protocol=st.nextToken();
        if (st.hasMoreTokens()) configInfo[i].src=st.nextToken();
        if (st.hasMoreTokens()) configInfo[i].dest=st.nextToken();
        if (st.hasMoreTokens()) configInfo[i].application=st.nextToken();
      }
    }
    br.close();
    br=null;
    return configInfo;
  }