Cannot set the property value for JMS_IBM_MQMD_MsgId in weblogic, JMS, java
问题 I want to send a message to a JMS Queue, and I want to set an object property: tMessage.setObjectProperty("JMS_IBM_MQMD_MsgId", bytes); //bytes is a byte array value But I am getting an exception for this row: tMessage.setObjectProperty("JMS_IBM_MQMD_MsgId", toByteArray((phone+"IBM").toCharArray())); Why cannot I set byte array to this property? I saw some example, and everyone sets bytearray, but I am getting exception: weblogic.jms.common.MessageFormatException: [JMSClientExceptions:055123