Fix JMS protocol bootstrap, close #2319