camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Kettelerij <richardkettele...@gmail.com>
Subject Re: missing region property in aws-sns component
Date Thu, 14 Apr 2011 20:13:51 GMT
This is a useful explanation. I've added it to the Camel website:
https://cwiki.apache.org/confluence/display/CAMEL/AWS-SNS

On Thu, Apr 14, 2011 at 9:47 PM, Marco Crivellaro <mcrive@optasportsdata.com
> wrote:

> You have to create an AmazonSNSClient and specify the endpoint otherwise it
> will default to us-east-1
>
>
> AWSCredentials awsCredentials = new BasicAWSCredentials("***", "!!!");
> AmazonSNSClient client = new AmazonSNSClient(awsCredentials);
> client.setEndpoint("http://sns.eu-west-1.amazonaws.com/");
> ((JndiRegistry) ((PropertyPlaceholderDelegateRegistry)
> context.getRegistry()).getRegistry()).bind("amazonSNSClient", client);
>
>
>
> than you can use the sns client created in the uri:
>
>
> template.sendBodyAndHeader("aws-sns://MyTopic?amazonSNSClient=#amazonSNSClient",
> "{\"test\":\"testvalue\"}", "Test", "Test header");
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/missing-region-property-in-aws-sns-component-tp4303687p4303872.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message