Given how ClientSessionImpl.isSameRM() is written, it will return true only if both sessions share the same *remoting connection to the server*.
If you create 2 sessions, they will have separate remoting connections and won't be considered as the same RM by the TM (it thinks JBM allows 8 remoting connection to be created before sharing them)
(it thinks JBM allows 8 remoting connection to be created before sharing them)
I meant: *I think ...*
Yes, this was from the old days when we had just a single remoting connection to each server,
To correct it, need to check whether the connection managers are the same, not the remoting connections.