Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14035

JDBC StreamList and outputClass does not work

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            Naryshkin Andrey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: