Changeset 23


Ignore:
Timestamp:
08/10/10 17:31:35 (13 years ago)
Author:
bowman
Message:

Prepared for 0.9.0 release.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.0.9.0.txt

    r19 r23  
    77
    88- Don't attempt to use an existing config. Start from scratch (with no proxy.xml) and use the generated config template.
    9   Allow the default plugins to remain unless you find good reason to do otherwise.
     9  Allow the default plugins to remain unless you find good reason to do otherwise. The generated config is the only
     10  example template included in 0.9.0.
    1011
    1112- Since the max connections limit is now per profile and not global:
  • trunk/README.Compiling.txt

    r1 r23  
    55
    66You'll need the following:
    7 - The Java SE sdk and compiler (j2sdk) 1.6 or later: http://developers.sun.com/downloads/new.jsp
     7- The Java SE sdk and compiler (jdk) 1.6 or later: http://java.sun.com/javase/downloads/widget/jdk6.jsp
    88NOTE: As of 0.8.10 java 1.6 is required to compile everything, but 1.4 is still enough to run the proxy.
    99Sun only provides downloads for linux/win/solaris, osx users look to apple: http://developer.apple.com/java/download/
     
    1313http://java.sun.com/docs/books/tutorial/
    1414
    15 The proxy comes with project files for Intellij IDEA 7, but you don't need this to compile (its a commercial product):
     15The proxy comes with project files for Intellij IDEA 9, but you don't need this to compile (its a commercial product):
    1616http://www.jetbrains.com/idea/index.html
    1717NOTE: There is now a open source community version as well, which works perfectly with the csp project files.
     
    2323following procedure:
    2424
    25 $ tar xvzf cardservproxy-0.8.13-src.tar.gz
     25$ tar xvzf cardservproxy-0.9.0-src.tar.gz
    2626$ cd cardservproxy-src
    2727$ ant
  • trunk/src/com/bowman/cardserv/CardServProxy.java

    r22 r23  
    579579      if(!userManager.isMapExcluded(session.getUser())) {
    580580        session.setFlag(msg, 'P');
     581        // hack to track the origin user of the probe later (conn name is normally only used for reply messages)
     582        msg.setConnectorName(session.toString());
     583
    581584        broadcastMessage(msg, connectors.getUnknown(), true);
    582585      }
  • trunk/src/com/bowman/cardserv/cws/CwsServiceMapper.java

    r17 r23  
    542542    if(!connectors.contains(conn.getName())) {
    543543      connectors.add(conn.getName());
    544       logger.info("Discovered service [" + config.getServiceName(msg) + "] on CWS: " + conn);     
     544      String source = (session==null?msg.getConnectorName():session.toString()); // conn name contains origin-session in case of probes
     545      logger.info("Discovered service [" + config.getServiceName(msg) + "] on CWS: " + conn +
     546          (source==null?"":" - Ecm source was: " + source));
    545547      if(session != null) session.setFlag(msg, '+');
    546548      cacheUpdated = true;
     
    568570          connectors.remove(conn.getName());
    569571          setLastFailed(id, conn.getName(), false, -1);
    570           String s = "Service [" + config.getServiceName(msg) + "] no longer available on CWS: " + conn.getName() +
    571               " Ecm source was: " + session;
    572           if(resetServices.contains(id)) logger.info(s);
    573           else logger.warning(s);
     572          if(session != null) {
     573            String s = "Service [" + config.getServiceName(msg) + "] no longer available on CWS: " + conn.getName() +
     574                " Ecm source was: " + session;
     575            if(resetServices.contains(id)) logger.info(s);
     576            else logger.warning(s);
     577          }
    574578          resetSingle(new ServiceMapping(id.serviceId, -1), conn.getName());
    575579          if(session != null) session.setFlag(msg, '-');
     
    581585        } else {
    582586          if(overrideCanDecodeMap.containsKey(id)) {
    583             logger.info("Service [" + config.getServiceName(msg) + "] failed to decode on CWS: " + conn.getName() +
    584                 " (according to the manual can-decode list it should always decode). Ecm source was: " + session);
     587            if(session != null)
     588              logger.info("Service [" + config.getServiceName(msg) + "] failed to decode on CWS: " + conn.getName() +
     589                  " (according to the manual can-decode list it should always decode). Ecm source was: " + session);
    585590            return;
    586591          } else {
    587             String s = "Service [" + config.getServiceName(msg) + "] failed to decode on CWS: "  + conn.getName() +
    588                 " (two consecutive failures removes mapping). Ecm source was: " + session;
    589             if(resetServices.contains(id)) logger.info(s);
    590             else logger.warning(s);
     592            if(session != null) {
     593              String s = "Service [" + config.getServiceName(msg) + "] failed to decode on CWS: "  + conn.getName() +
     594                  " (two consecutive failures removes mapping). Ecm source was: " + session;
     595              if(resetServices.contains(id)) logger.info(s);
     596              else logger.warning(s);
     597            }
    591598            setLastFailed(id, conn.getName(), true, session==null?-1:session.getId());
    592599            return;
  • trunk/src/com/bowman/cardserv/session/EcmTransaction.java

    r1 r23  
    106106  public String getConnectorName() {
    107107    if(reply != null && reply.getConnectorName() != null) return reply.getConnectorName();
    108     else if(request != null && request.getConnectorName() != null) return request.getConnectorName();
    109108    else return null;
    110109  }
  • trunk/src/com/bowman/cardserv/web/FileFetcher.java

    r1 r23  
    8686    }
    8787    addConnection(conn);
    88     if(lastModified != -1 && conn.getLastModified() != 0) {
     88    if(lastModified > 0 && conn.getLastModified() > 0) {
    8989      if(conn.getLastModified() <= lastModified) return null;
    9090    }
Note: See TracChangeset for help on using the changeset viewer.