summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java2
-rw-r--r--java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java7
-rw-r--r--java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java7
3 files changed, 11 insertions, 5 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 d0b9f99408..4bb83330e8 100644
--- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java
+++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindConnectionFactory.java
@@ -33,7 +33,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 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 FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory";
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 3b3d7850d8..9a24c36e70 100644
--- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java
+++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindQueue.java
@@ -35,7 +35,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 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 FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory";
@@ -89,7 +89,10 @@ public class JNDIBindQueue
{
try
{
- _connection.close();
+ if (_connection != null)
+ {
+ _connection.close();
+ }
}
catch (JMSException closeE)
{
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 437f3791c9..5a1d89ed2a 100644
--- a/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java
+++ b/java/client/test/src/org/apache/qpid/IBMPerfTest/JNDIBindTopic.java
@@ -34,7 +34,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 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 FSCONTEXT_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory";
@@ -89,7 +89,10 @@ public class JNDIBindTopic
{
try
{
- _connection.close();
+ if (_connection != null)
+ {
+ _connection.close();
+ }
}
catch (JMSException closeE)
{