candrews / sqs-jms-ra

SQS JMS Resource Adapter
Apache License 2.0
10 stars 3 forks source link

SQS Attributes not converted to JMSProperties #2

Open baztian opened 6 years ago

baztian commented 6 years ago

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation should get converted to JMS Properties. Having

public void onMessage(Message message) {
  TextMessage textMessage = (TextMessage) message;
  List<String> propertyNames = Collections.list(textMessage.getPropertyNames());
  String attributes =propertyNames.stream().collect(Collectors.joining());

leaves attributes empty.