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
parent de9cc2e708
commit c3871a183f
1 changed files with 1 additions and 1 deletions

View File

@ -686,7 +686,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