[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/http/client ...
Ron Sigal
ron_sigal at yahoo.com
Sun Sep 3 01:13:54 EDT 2006
User: rsigal
Date: 06/09/03 01:13:54
Modified: src/tests/org/jboss/test/remoting/performance/spring/http/client
SpringHttpPerformanceClient.java
Log:
JBREM-595: Put the body of makeInvocation() in a loop, to allow for temporary failures due to no port being available.
Revision Changes Path
1.3 +20 -10 JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/http/client/SpringHttpPerformanceClient.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SpringHttpPerformanceClient.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/http/client/SpringHttpPerformanceClient.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SpringHttpPerformanceClient.java 31 Aug 2006 01:20:28 -0000 1.2
+++ SpringHttpPerformanceClient.java 3 Sep 2006 05:13:54 -0000 1.3
@@ -184,6 +184,10 @@
protected Object makeInvocation(String method, Object param) throws Throwable
{
+ while (true)
+ {
+ try
+ {
if(method.equals(NUM_OF_CALLS))
{
return springHttpServerService.sendNumberOfCalls(clientSessionId, param);
@@ -197,6 +201,12 @@
throw new Exception("Was not able to find remote method call for " + method);
}
}
+ catch (Exception e)
+ {
+ log.error("invocation error: " + e);
+ }
+ }
+ }
public static void main(String[] args)
{
More information about the jboss-cvs-commits
mailing list