summaryrefslogtreecommitdiff
path: root/java/test/IceSSL/configuration
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-05-23 22:47:20 +0000
committerMark Spruiell <mes@zeroc.com>2006-05-23 22:47:20 +0000
commit79bf4b42196388d191d42fd9f722db0761853fe6 (patch)
tree3ae78d5487fe497e91fb22395081f4f6fb8c9d81 /java/test/IceSSL/configuration
parentdisabled start for session servers (diff)
downloadice-79bf4b42196388d191d42fd9f722db0761853fe6.tar.bz2
ice-79bf4b42196388d191d42fd9f722db0761853fe6.tar.xz
ice-79bf4b42196388d191d42fd9f722db0761853fe6.zip
check the JDK version
Diffstat (limited to 'java/test/IceSSL/configuration')
-rw-r--r--java/test/IceSSL/configuration/Client.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/java/test/IceSSL/configuration/Client.java b/java/test/IceSSL/configuration/Client.java
index 6177553f004..cbeef9c1016 100644
--- a/java/test/IceSSL/configuration/Client.java
+++ b/java/test/IceSSL/configuration/Client.java
@@ -21,20 +21,19 @@ public class Client
Test.ServerFactoryPrx factory;
//
- // If we're using JDK 1.4, we can only use thread-per-connection.
- // Otherwise, we run the test twice, once for each concurrency model.
+ // If we're using JDK 1.4, or JDK 1.5 with the 1.4 plugin, we can only
+ // use thread-per-connection. Otherwise, we run the test twice, once for
+ // each concurrency model.
//
+ System.out.println("testing with thread-per-connection.");
+ factory = AllTests.allTests(communicator, args[0], false);
+
+ boolean threadPerConnection = communicator.getProperties().getPropertyAsInt("Ice.ThreadPerConnection") > 0;
String jdkVersion = System.getProperty("java.version");
- if(jdkVersion.startsWith("1.4"))
- {
- factory = AllTests.allTests(communicator, args[0], false);
- }
- else
+ if(jdkVersion.startsWith("1.5") && !threadPerConnection)
{
- System.out.println("testing with thread-per-connection.");
- AllTests.allTests(communicator, args[0], false);
System.out.println("testing with thread pool.");
- factory = AllTests.allTests(communicator, args[0], true);
+ AllTests.allTests(communicator, args[0], true);
}
factory.shutdown();