diff options
| author | Arnaud Simon <arnaudsimon@apache.org> | 2007-11-13 10:57:46 +0000 |
|---|---|---|
| committer | Arnaud Simon <arnaudsimon@apache.org> | 2007-11-13 10:57:46 +0000 |
| commit | cdc60ef815279e02b58953d528b4f872dc68b77b (patch) | |
| tree | c0655f10c2acbd5b7dda08c68c2eab77129f6244 /java/perftests/src | |
| parent | 2be49cfc2ea3a6aec720cc0233ee90a5ab6d9024 (diff) | |
| download | qpid-python-cdc60ef815279e02b58953d528b4f872dc68b77b.tar.gz | |
Changed to use initial context helper
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@594482 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/perftests/src')
| -rw-r--r-- | java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java index c3689151d2..da6d6eb7d0 100644 --- a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java +++ b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java @@ -669,12 +669,9 @@ public class PingPongProducer implements Runnable, ExceptionListener // _log.debug("protected void createConnection(String clientID = " + clientID + "): called");
// _log.debug("Creating a connection for the message producer.");
- File propsFile = new File(_fileProperties);
- InputStream is = new FileInputStream(propsFile);
- Properties properties = new Properties();
- properties.load(is);
+
- Context context = new InitialContext(properties);
+ Context context = InitialContextHelper.getInitialContext(_fileProperties);
ConnectionFactory factory = (ConnectionFactory) context.lookup(_factoryName);
_connection = factory.createConnection(_username, _password);
|
