All pastes #341463 Raw Edit

Something

public text v1 · immutable
·published 2007-02-05 17:40 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<String, Long> lastNotificationMap = (Map<String, Long>) servletContext.getAttribute("lastNotificationMap");
            String lastNotificationKey = pVO.getTagId() + "-" + pVO.getPerfId();
            long lastNotificationTS = lastNotificationMap.get(lastNotificationKey);