From 79bf4b42196388d191d42fd9f722db0761853fe6 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 23 May 2006 22:47:20 +0000 Subject: check the JDK version --- java/test/IceSSL/configuration/Client.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'java/test/IceSSL/configuration/Client.java') 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(); -- cgit v1.2.3