camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdfleischmann <>
Subject AWS SNS + Camel + "amazonSNSEndpoint" being ignored?
Date Wed, 12 Mar 2014 00:08:13 GMT
Hello folks, wondering if you have come across this issue, or if there is
something simple I am doing wrong.

I am using the SNS Camel component, declared as:

/*<bean name="snsClient" class="">
            <bean class="com.amazonaws.auth.BasicAWSCredentials">
                <constructor-arg value="${access.key}"/>
                <constructor-arg value="${secret.key}"/>

And in my routebuilder, I have created the following route like so;

*/Exchange exchange2 =
            		new Processor() {
                public void process(Exchange exchange) throws Exception {
                	exchange.getIn().setHeader(SnsConstants.SUBJECT, "This is
my subject");
                    exchange.getIn().setBody("This is my message text.");
            // Simply print out the message id.
            System.out.println("Message ID: " +

Which works fine, I can subscribe to the topic and receive my notifications,
however, when I try to add the amazonSNSEndpoint=ap-southeast-2 parameter to
change to the Sydney region, it seems to be ignored?
*Exchange exchange2 =

Instead, I am doing the following to work-around this issue, prior to
calling my producer.send command...

/*snsClient = (AmazonSNSClient)
snsClient.setEndpoint("");	*/

Out of interest, I have also tried:

*Exchange exchange2 =

... to no avail. Is there something I am missing with respect to this

Lastly, I believe I am using 2.13-snapshot for my camel pom.xml file.

Please do let me know... Cheers,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message