ARTEMIS-1187 Incompatible version when recreating a session with older server

This commit is contained in:
Tomas Hofman 2017-05-29 12:27:09 +02:00 committed by Clebert Suconic
parent 335381d195
commit 8eb5ce9ebd
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ public class ActiveMQSessionContext extends SessionContext {
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge) {
return new CreateSessionMessage(name, sessionChannel.getID(), VersionLoader.getVersion().getIncrementingVersion(), username, password, minLargeMessageSize, xa, autoCommitSends, autoCommitAcks, preAcknowledge, confirmationWindow, null);
return new CreateSessionMessage(name, sessionChannel.getID(), serverVersion, username, password, minLargeMessageSize, xa, autoCommitSends, autoCommitAcks, preAcknowledge, confirmationWindow, null);
}
@Override