You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/10/15 07:03:36 UTC
[camel] branch camel-2.24.x updated: sql-stored endpoint should be
singleton. Thanks to community user for reporting.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.24.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.24.x by this push:
new 1565930 sql-stored endpoint should be singleton. Thanks to community user for reporting.
1565930 is described below
commit 156593085f1c23889b8082acc05000d6ad82f017
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Oct 14 09:57:50 2019 +0200
sql-stored endpoint should be singleton. Thanks to community user for reporting.
---
.../apache/camel/component/sql/stored/SqlStoredEndpoint.java | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java
index 8eb44f2..6d80de9 100644
--- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java
+++ b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java
@@ -78,6 +78,10 @@ public class SqlStoredEndpoint extends DefaultEndpoint {
return "sql-stored:" + UnsafeUriCharactersEncoder.encode(this.template);
}
+ protected CallableStatementWrapperFactory getWrapperFactory() {
+ return wrapperFactory;
+ }
+
@Override
protected void doStart() throws Exception {
this.wrapperFactory = new CallableStatementWrapperFactory(jdbcTemplate, new TemplateParser(getCamelContext().getClassResolver()), isFunction());
@@ -156,12 +160,4 @@ public class SqlStoredEndpoint extends DefaultEndpoint {
this.function = function;
}
- @Override
- public boolean isSingleton() {
- return false;
- }
-
- public CallableStatementWrapperFactory getWrapperFactory() {
- return wrapperFactory;
- }
}