You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2019/10/07 03:49:00 UTC
[jira] [Resolved] (CAMEL-14035) JDBC StreamList and outputClass
does not work
[ https://issues.apache.org/jira/browse/CAMEL-14035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-14035.
---------------------------------
Assignee: Claus Ibsen
Resolution: Fixed
> JDBC StreamList and outputClass does not work
> ---------------------------------------------
>
> Key: CAMEL-14035
> URL: https://issues.apache.org/jira/browse/CAMEL-14035
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-jdbc
> Affects Versions: 2.24.2
> Reporter: Andrey
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.0.0, 2.25.0, 2.24.3
>
>
> Situation is simple:
> I try to load data from jdbc by Stream to Java object
> with such command jdbc:dbBean?outputType=StreamList&outputClass=myClass.
> I estimate Java object on exit of flow? but i have Map<String, Object>.
> Bug in JdbcProducer at lines 326.
> if (outputType == JdbcOutputType.StreamList) {
> exchange.getOut().setBody(iterator);
> exchange.addOnCompletion(new ResultSetIteratorCompletion(iterator));
> // do not close resources as we are in streaming mode
> answer = false;
> }
> Here need wrap iterator to map objects by method newBeanInstance
--
This message was sent by Atlassian Jira
(v8.3.4#803005)