<div dir="ltr"><font face="tahoma,sans-serif">Hi,<br>I have a code like this:<br><br> byte[] rawBytes = serialize(trxEntities);<br> byte[] zipped = rawBytes;<br><br> if (shouldBeCompress) {<br>
zipped = compressor.compress(rawBytes);<br> }<br><br> BasicProperties persistentBasic = MessageProperties.PERSISTENT_BASIC;<br> channel.basicPublish("", queueName, persistentBasic, zipped);<br>
<br>As you see some of my messages should be compress along witch some others shouldn't.<br>Is there any way I could set any properties to tell the consumer that "hey! this is a zipped message" ?<br><br>PS. does </font><i>"com.rabbitmq.client.<a class="header" href="eclipse-javadoc:%E2%98%82=rabbitmq-java-client-src-2.8.2/lib%5C/rabbitmq-client.jar%3Ccom.rabbitmq.client%28AMQP.class%E2%98%83AMQP">AMQP</a>.<a class="header" href="eclipse-javadoc:%E2%98%82=rabbitmq-java-client-src-2.8.2/lib%5C/rabbitmq-client.jar%3Ccom.rabbitmq.client%28AMQP$BasicProperties.class%E2%98%83BasicProperties">BasicProperties</a>.BasicProperties(..., <a class="header" href="eclipse-javadoc:%E2%98%82=rabbitmq-java-client-src-2.8.2/lib%5C/rabbitmq-client.jar%3Ccom.rabbitmq.client%28AMQP$BasicProperties.class%E2%98%83BasicProperties%7EBasicProperties%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Map%5C%3CLjava.lang.String;Ljava.lang.Object;%3E;%7ELjava.lang.Integer;%7ELjava.lang.Integer;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Date;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%E2%98%82Map">Map</a><<a class="header" href="eclipse-javadoc:%E2%98%82=rabbitmq-java-client-src-2.8.2/lib%5C/rabbitmq-client.jar%3Ccom.rabbitmq.client%28AMQP$BasicProperties.class%E2%98%83BasicProperties%7EBasicProperties%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Map%5C%3CLjava.lang.String;Ljava.lang.Object;%3E;%7ELjava.lang.Integer;%7ELjava.lang.Integer;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Date;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%E2%98%82String">String</a>,
<a class="header" href="eclipse-javadoc:%E2%98%82=rabbitmq-java-client-src-2.8.2/lib%5C/rabbitmq-client.jar%3Ccom.rabbitmq.client%28AMQP$BasicProperties.class%E2%98%83BasicProperties%7EBasicProperties%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Map%5C%3CLjava.lang.String;Ljava.lang.Object;%3E;%7ELjava.lang.Integer;%7ELjava.lang.Integer;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.util.Date;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%7ELjava.lang.String;%E2%98%82Object">Object</a>> headers, ...)"</i> help me? I mean could I set any parameter in BasicProperties.header ?<br>
<font face="tahoma,sans-serif"><br></font>-- <br><div dir="ltr"><font style="color:rgb(51,0,153);font-family:tahoma,sans-serif" size="2"><span><span><span><br><span style="color:rgb(0,0,0)">Sincerely </span><br style="color:rgb(0,0,0)">
<span style="color:rgb(0,0,0)">ML</span></span></span></span></font><br></div><br>
</div>