BZ-1109424 - Remote API with JMS only supports 65,545 characters in messages

(cherry picked from commit c0d1630a65e4e7f928453b367026454f86120d89)