git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using custom prepareStatementStrategy


I must be doing something wrong.

&prepareStatementStrategy=%23strategia due to: Could not find a suitable
setter for property: prepareStatementStrategy as there isn't a setter
method with same type: java.lang.String nor type conversion possible: No
type converter available to convert from type: java.lang.String to the
required type: org.apache.camel.component.sql.SqlPrepareStatementStrategy
with value #strategia

2018-07-03 12:44 GMT+02:00 Claus Ibsen <claus.ibsen@xxxxxxxxx>:

> Hi
>
> Use # syntax, see for example the unit test class
> SqlProducerAlwaysPopulateStatementTest
>
> On Sun, Jul 1, 2018 at 3:51 PM, bukaj_s <jsodpad@xxxxxxxxx> wrote:
> > Hello.
> > How can one plug in his own implementation of prepareStatementStrategy?
> > Using prepareStatementStrategy=com.example.CustomStrategy is not working
> > for me.
> > Thanks
> > Best regards
> > Bukaj
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>