geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r574686 - in /geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo: AsyncServlet.java Callback.java
Date Tue, 11 Sep 2007 20:16:08 GMT
Author: prasad
Date: Tue Sep 11 13:16:08 2007
New Revision: 574686

URL: http://svn.apache.org/viewvc?rev=574686&view=rev
Log:
* fixed delay values

Modified:
    geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/AsyncServlet.java
    geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/Callback.java

Modified: geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/AsyncServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/AsyncServlet.java?rev=574686&r1=574685&r2=574686&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/AsyncServlet.java
(original)
+++ geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/AsyncServlet.java
Tue Sep 11 13:16:08 2007
@@ -97,7 +97,7 @@
 		Random generator = new Random();
 
 		// generate a random delay between 10ms and 250 ms
-		int delay = generator.nextInt(250) + 10;
+		int delay = generator.nextInt(2500) + 10;
 		params[0] = new Integer(delay);
 
 		// generate randomly one of http status codes.

Modified: geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/Callback.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/Callback.java?rev=574686&r1=574685&r2=574686&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/Callback.java
(original)
+++ geronimo/samples/trunk/samples/async-http/http-local-app/src/main/java/org/apache/geronimo/Callback.java
Tue Sep 11 13:16:08 2007
@@ -28,7 +28,6 @@
 	}
 
 	public void onResponse(HttpResponseMessage message) {
-		System.out.println("callback response");
 		this.message = message;
 
 		HttpServletResponse response = event.getHttpServletResponse();
@@ -50,20 +49,17 @@
 	}
 
 	public void onException(Throwable cause) {
-		System.out.println("callback exception");
 		throwable = cause;
 		exception = true;
 		// closeEvent();
 	}
 
-	public void onClosed() {
-		System.out.println("callback closed");
+	public void onClosed() {		
 		closed = true;
 		closeEvent();
 	}
 
-	public void onTimeout() {
-		System.out.println("callback timedout");
+	public void onTimeout() {		
 		timeout = true;
 		HttpServletResponse response = event.getHttpServletResponse();
 		try {



Mime
View raw message