I have below JAVA code to get the JMS MQ message.
BytesMessage bm = (BytesMessage) message; byte data[] = new byte[(int)bm.getBodyLength()];