[
https://issues.apache.org/jira/browse/CAMEL-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976150#action_12976150
]
Tracy Snell commented on CAMEL-3468:
------------------------------------
Just need to add these 3 lines (no diff since it's not in svn yet) in the
SqsConsumer poll method:
{code}
Map<String, Object> attributes = new HashMap<String,
Object>(msg.getAttributes());
// Add message attributes to the header map
attributes.put(SqsBinding.MESSAGE_ID, msg.getMessageId());
attributes.put(SqsBinding.RECEIPT_HANDLE, msg.getReceiptHandle());
attributes.put(SqsBinding.MD5_OF_BODY, msg.getMD5OfBody());
message.setHeaders(attributes);
{code}
That runs cleanly for everything but the last 2 lines of sendInOut()
{code}
assertNotNull(exchange.getOut().getHeader("messageId"));
assertEquals("6a1559560f67c5e7a7d5d838bf0272ee",
resultExchange.getOut().getHeader("mD5OfBody"));
{code}
Also you have exchange in the first line and resultExchange in the second
(doesn't matter since out isn't set in either exhange). Looking at the out
issue now.
> New camel-aws component
> -----------------------
>
> Key: CAMEL-3468
> URL: https://issues.apache.org/jira/browse/CAMEL-3468
> Project: Camel
> Issue Type: New Feature
> Reporter: Tracy Snell
> Assignee: Christian Müller
> Attachments: patchfile.txt
>
>
> I've started a new component to interface with Amazon Web Services. This
> first pass includes just a Simple Queue Service component. Additional
> services will be added soon. I used the Amazon AWS SDK for Java to interface
> with AWS. Uses Apache 2.0 as it's license.
> Let me know if I need to change things or any thoughts/suggestions and I'll
> be glad to make the adjustments.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.