You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/29 14:37:11 UTC

[GitHub] fangjian0423 opened a new issue #41: Problems about the keys of message header conversion

fangjian0423 opened a new issue #41: Problems about the keys of message header conversion
URL: https://github.com/apache/rocketmq-spring/issues/41
 
 
   Spring messaging/integration provide some annotations or interfaces like `@Header`, `SimpleSequenceSizeReleaseStrategy` to get value from Spring Message Header or handle aggregator messages.
   
   But now the keys in  Spring Message Header has been changed by RocketMQ message header conversion.
   
   For example:
   
   I set 'index' key in Spring Message Header, it will be converted to `USERS_index` when convert to RocketMQ Message from Spring Message.
   
   It will converted to `PROPERTIES` key(This is a Map, then get by `USERS_index` key ) when convert back to Spring Message from RocketMQ Message.
   
   I get it by `PROPERTIES` key to get Map firstly, then get value by `USERS_index` key from this map when I convert it back to Spring Message.
   
   So is it better to use raw key in RocketMQ message header conversion?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services