All pastes #341460 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-05 17:38 UTC
rendered paste body

//FROM CLASS A
            private static Map<String, Long> lastNotificationMap = new HashMap<String, Long>();



            
//FROM CLASS B            
            ServletContext servletContext = this.getServlet().getServletContext();
            Map lastNotificationMap = (Map) servletContext.getAttribute("lastNotificationMap");
            String lastNotificationKey = pVO.getTagId() + "-" + pVO.getPerfId();
            long lastNotificationTS = lastNotificationMap.get(lastNotificationKey);