This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 985ece4 Camel-AWS-SNS: Moving the logic of doStart for endpoint in
doInit
985ece4 is described below
commit 985ece4dfa79d4da49eeb8c623d7ec9cbac6f0c3
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Aug 22 10:11:44 2019 +0200
Camel-AWS-SNS: Moving the logic of doStart for endpoint in doInit
---
.../src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components/camel-aws-sns/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
b/components/camel-aws-sns/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
index c969f6f..a61e086 100644
---
a/components/camel-aws-sns/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
+++
b/components/camel-aws-sns/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
@@ -94,8 +94,8 @@ public class SnsEndpoint extends DefaultEndpoint implements
HeaderFilterStrategy
}
@Override
- public void doStart() throws Exception {
- super.doStart();
+ public void doInit() throws Exception {
+ super.doInit();
snsClient = configuration.getAmazonSNSClient() != null
? configuration.getAmazonSNSClient() : createSNSClient();