org.apache.jmeter.protocol.jms.client
Class ConnectionFactory
- TestListener
public class ConnectionFactory
ConnectionFactory is responsible for creating new connections. Eventually,
the connection factory should read an external configuration file and create
a pool of connections. The current implementation just does the basics. Once
the tires get kicked a bit, we can add connection pooling support.
Note: the connection factory will retry to get the connection factory 5 times
before giving up. Thanks to Peter Johnson for catching the bug and providing
the patch.
ConnectionFactory
protected ConnectionFactory()
getQueueConnection
public static QueueConnection getQueueConnection(Context ctx,
String queueConn)
getQueueConnectionFactory
public static QueueConnectionFactory getQueueConnectionFactory(Context ctx,
String fac)
getTopicConnection
public static TopicConnection getTopicConnection()
getTopicConnectionFactory
public static TopicConnectionFactory getTopicConnectionFactory(Context ctx,
String fac)
testEnded
public void testEnded()
endTest cleans up the client
- testEnded in interface TestListener
junit.framework.TestListener.endTest(junit.framework.Test)
testStarted
public void testStarted()
startTest sets up the client and gets it ready for the test. Since async
messaging is different than request/ response applications, the
connection is created at the beginning of the test and closed at the end
of the test.
- testStarted in interface TestListener
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.