OMMMsg 这个API如何获取路透发送的原报文?应该通过哪个方法查看?
@235601
Thank you for reaching out to us.
OMMMsg is an interface class in the RFA package. This interface contains set of accessor methods, used to set and get message data elements, and utility methods.
If you would like to retrive the raw unencoded data, you can use the getBytes method which returns the encoded message as a byte array.
For more information, please refer to the RFA reference guide in the RFA package.
It is encoded by our proprietary format.
You can try the OMMPool.acquireMsg(byte[] data) method which acquires a read-only OMMMsg. Temporary ownership of the byte[] is claimed by the OMMMsg, so the caller must not change the byte[] until after the OMMMsg is released with releaseMsg(OMMMsg).
There are other interfaces in the OMMPool which can direclty copy a message, such as acquireCopy.
For more information, please refer to the RFA Reference Manual in the RFA Java package.