diff options
3 files changed, 6 insertions, 6 deletions
diff --git a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java index 4bb83330e8..41e7ed345b 100644 --- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java +++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java @@ -34,7 +34,7 @@ public class JNDIBindConnectionFactory public static final String CONNECTION_FACTORY_BINDING = "amq/ConnectionFactory"; public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/IBMPerfTestsJNDI"; - public static final String PROVIDER_URL = "file:/" + DEFAULT_PROVIDER_FILE_PATH; + public static final String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; public static final String FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory"; public static void main(String[] args) @@ -72,7 +72,7 @@ public class JNDIBindConnectionFactory if (provider.startsWith("file")) { - File file = new File(provider.substring(provider.indexOf(":/") + 2)); + File file = new File(provider.substring(provider.indexOf("://") + 3)); try { System.out.println("File:" + file.toURL()); diff --git a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java index 9a24c36e70..0efa7c235d 100644 --- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java +++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java @@ -36,7 +36,7 @@ public class JNDIBindQueue public static final String CONNECTION_FACTORY_BINDING = "amq/ConnectionFactory"; public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/IBMPerfTestsJNDI"; - public static final String PROVIDER_URL = "file:/" + DEFAULT_PROVIDER_FILE_PATH; + public static final String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; public static final String FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory"; Connection _connection = null; @@ -174,7 +174,7 @@ public class JNDIBindQueue if (provider.startsWith("file")) { - File file = new File(provider.substring(provider.indexOf(":/") + 2)); + File file = new File(provider.substring(provider.indexOf("://") + 3)); try { System.out.println("File:" + file.toURL()); diff --git a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java index 5a1d89ed2a..d5508c446d 100644 --- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java +++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java @@ -35,7 +35,7 @@ public class JNDIBindTopic public static final String CONNECTION_FACTORY_BINDING = "amq/ConnectionFactory"; public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/IBMPerfTestsJNDI"; - public static final String PROVIDER_URL = "file:/" + DEFAULT_PROVIDER_FILE_PATH; + public static final String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; public static final String FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory"; @@ -175,7 +175,7 @@ public class JNDIBindTopic if (provider.startsWith("file")) { - File file = new File(provider.substring(provider.indexOf(":/") + 2)); + File file = new File(provider.substring(provider.indexOf("://") + 3)); try { System.out.println("File:" + file.toURL()); |