mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 19:15:20 +00:00
fixed reconnection test which was creating a new connection with a client ID before closing the previous one which threw the InvalidClientIDException
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c68a1460ba
commit
95a2aa6b8f
@ -426,12 +426,11 @@ abstract public class JmsTransactionTestSupport extends TestSupport implements M
|
|||||||
*/
|
*/
|
||||||
protected void reconnect() throws JMSException {
|
protected void reconnect() throws JMSException {
|
||||||
|
|
||||||
Connection t = resourceProvider.createConnection(connectionFactory);
|
|
||||||
if (connection != null) {
|
if (connection != null) {
|
||||||
// Close the previous connection.
|
// Close the previous connection.
|
||||||
connection.close();
|
connection.close();
|
||||||
}
|
}
|
||||||
connection = t;
|
connection = resourceProvider.createConnection(connectionFactory);
|
||||||
|
|
||||||
session = resourceProvider.createSession(connection);
|
session = resourceProvider.createSession(connection);
|
||||||
destination = resourceProvider.createDestination(session, getSubject());
|
destination = resourceProvider.createDestination(session, getSubject());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user