[ 
https://issues.apache.org/jira/browse/ARTEMIS-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210989#comment-17210989
 ] 

Robbie Gemmell commented on ARTEMIS-2940:
-----------------------------------------

For clarity to other observers later, the above text was copied from the readme 
for the 'broker-plugin' example at [1], which demonstrates use of the 
"reencode()" method on the AMQP message, which an interceptor could use to 
reencode the message after adding properties and thus force the broker to 
violate the immutable contract of the AMQP message application-properties 
section.

[1] 
examples/features/standard/broker-plugin/src/main/java/org/apache/activemq/artemis/jms/example/BrokerPlugin.java

> Able to set the properties in AMQP interceptor but they does not exist when 
> consumer received the message
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-2940
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2940
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: AMQP
>            Reporter: Rajesh Reddy Kasala
>            Priority: Major
>
> When we set the properties in AMQP interceptor:
> SimpleAmqpInterceptor.java
> message.putStringProperty("key", "value");
>  
> And try to get the property when consumer receive it:
> InterceptorExample.java
> messageReceived.getStringProperty("key");
>  
> Issue can be replicated using 
> examples/features/standard/interceptor-amqp/src/main/java/org/apache/activemq/artemis/amqp/example/InterceptorExample.java
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to