check ack mode correctly on createSession
Merge pull request #1219 from andytaylor/master

check ack mode correctly on createSession
use compare on netty version check, avoiding cases like https://bugzilla.redhat.com/show_bug.cgi?id=923646