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 <[email protected] > 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. >
