SNS ComponentAvailable as of Camel 2.8 The SNS component allows messages to be sent to an Amazon Simple Notification Topic. The implementation of the Amazon API is provided by the AWS SDK.
URI Format
aws-sns://topicName[?options]
The topic will be created if they don't already exists. URI Options
UsageMessage headers evaluated by the SNS producer
Message headers set by the SNS producer
Advanced AmazonSNS configurationIf you need more control over the AmazonSNS instance configuration you can create your own instance and refer to it from the URI: from("direct:start") .to("aws-sns://MyTopic?amazonSNSClient=#client"); The #client refers to a AmazonSNS in the Registry. For example if your Camel Application is running behind a firewall: AWSCredentials awsCredentials = new BasicAWSCredentials("myAccessKey", "mySecretKey"); ClientConfiguration clientConfiguration = new ClientConfiguration(); clientConfiguration.setProxyHost("http://myProxyHost"); clientConfiguration.setProxyPort(8080); AmazonSNS client = new AmazonSNSClient(awsCredentials, clientConfiguration); registry.bind("client", client); DependenciesMaven users will need to add the following dependency to their pom.xml. pom.xml <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-aws</artifactId> <version>${camel-version}</version> </dependency> where ${camel-version} must be replaced by the actual version of Camel (2.8 or higher). See Also |