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:31 UTC
[camel] branch camel-2.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.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new f24bba1 sql-stored endpoint should be singleton. Thanks to community user for reporting.
f24bba1 is described below
commit f24bba190043cac40eed489818b6868f209d93f4
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;
- }
}