Set client (!server) version on recreate session
This commit is contained in:
parent
33addb4086
commit
9210383126
|
@ -99,6 +99,7 @@ import org.apache.activemq.spi.core.protocol.RemotingConnection;
|
||||||
import org.apache.activemq.spi.core.remoting.Connection;
|
import org.apache.activemq.spi.core.remoting.Connection;
|
||||||
import org.apache.activemq.spi.core.remoting.SessionContext;
|
import org.apache.activemq.spi.core.remoting.SessionContext;
|
||||||
import org.apache.activemq.utils.TokenBucketLimiterImpl;
|
import org.apache.activemq.utils.TokenBucketLimiterImpl;
|
||||||
|
import org.apache.activemq.utils.VersionLoader;
|
||||||
|
|
||||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DISCONNECT_CONSUMER;
|
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.DISCONNECT_CONSUMER;
|
||||||
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.EXCEPTION;
|
import static org.apache.activemq.core.protocol.core.impl.PacketImpl.EXCEPTION;
|
||||||
|
@ -628,7 +629,7 @@ public class ActiveMQSessionContext extends SessionContext
|
||||||
{
|
{
|
||||||
Packet createRequest = new CreateSessionMessage(name,
|
Packet createRequest = new CreateSessionMessage(name,
|
||||||
sessionChannel.getID(),
|
sessionChannel.getID(),
|
||||||
getServerVersion(),
|
VersionLoader.getVersion().getIncrementingVersion(),
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
minLargeMessageSize,
|
minLargeMessageSize,
|
||||||
|
|
Loading…
Reference in New Issue