문제

How can I send byte array as a message property(but not in body!) by ActiveMQ?

I wanna compress(Deflate) some properties and decompress(Inflate) them on destination

도움이 되었습니까?

해결책

JMS spec states: Property values can be boolean, byte, short, int, long, float, double, and String.

So im pretty sure you cant use byte array however there is nothing stopping you encoding that byte array and sending it as a string.

http://docs.oracle.com/javaee/6/api/javax/jms/Message.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top