geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r406025 - in /geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console: ajax/ProgressMonitor.java jsr77/Jsr77Lookup.java
Date Sat, 13 May 2006 06:40:09 GMT
Author: ammulder
Date: Fri May 12 23:40:08 2006
New Revision: 406025

URL: http://svn.apache.org/viewcvs?rev=406025&view=rev
Log:
Update DWR code to recommended syntax

Modified:
    geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/ajax/ProgressMonitor.java
    geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/jsr77/Jsr77Lookup.java

Modified: geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/ajax/ProgressMonitor.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/ajax/ProgressMonitor.java?rev=406025&r1=406024&r2=406025&view=diff
==============================================================================
--- geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/ajax/ProgressMonitor.java
(original)
+++ geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/ajax/ProgressMonitor.java
Fri May 12 23:40:08 2006
@@ -19,7 +19,7 @@
 
 import javax.servlet.http.HttpSession;
 
-import uk.ltd.getahead.dwr.ExecutionContext;
+import uk.ltd.getahead.dwr.WebContextFactory;
 
 /**
  * Provides information to an AJAX client during server side
@@ -29,8 +29,8 @@
 {
     public ProgressInfo getProgressInfo()
     {
-        HttpSession session = ExecutionContext.get().getSession();
-        
+        HttpSession session = WebContextFactory.get().getSession(false);
+
         if (session.getAttribute(ProgressInfo.PROGRESS_INFO_KEY) != null) {
             return (ProgressInfo) session.getAttribute(ProgressInfo.PROGRESS_INFO_KEY);
         } else {

Modified: geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/jsr77/Jsr77Lookup.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/jsr77/Jsr77Lookup.java?rev=406025&r1=406024&r2=406025&view=diff
==============================================================================
--- geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/jsr77/Jsr77Lookup.java
(original)
+++ geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/jsr77/Jsr77Lookup.java
Fri May 12 23:40:08 2006
@@ -19,7 +19,7 @@
 import javax.servlet.http.HttpSession;
 import javax.management.j2ee.statistics.JVMStats;
 import javax.management.j2ee.statistics.BoundedRangeStatistic;
-import uk.ltd.getahead.dwr.ExecutionContext;
+import uk.ltd.getahead.dwr.WebContextFactory;
 import org.apache.geronimo.console.util.PortletManager;
 import org.apache.geronimo.console.util.ManagementHelper;
 import org.apache.geronimo.management.geronimo.J2EEDomain;
@@ -34,7 +34,7 @@
  */
 public class Jsr77Lookup {
     public DynamicServerInfo getJavaVMStatistics() {
-        HttpSession session = ExecutionContext.get().getSession();
+        HttpSession session = WebContextFactory.get().getSession(false);
         ManagementHelper helper = PortletManager.getManagementHelper(session);
         J2EEDomain[] domains = helper.getDomains();
         J2EEServer[] servers = domains[0].getServerInstances();



Mime
View raw message