ARTEMIS-1187 Incompatible version when recreating a session with older server
This commit is contained in:
parent
de9cc2e708
commit
c3871a183f
|
@ -686,7 +686,7 @@ public class ActiveMQSessionContext extends SessionContext {
|
||||||
boolean autoCommitSends,
|
boolean autoCommitSends,
|
||||||
boolean autoCommitAcks,
|
boolean autoCommitAcks,
|
||||||
boolean preAcknowledge) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue