git.net

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

Re: Using custom prepareStatementStrategy


Hi

Try with newer Camel version.
And make sure that your custom strategy is a bean with that id and its
in the bean registry.

On Sat, Jul 14, 2018 at 10:35 PM, bukaj_s <jsodpad@xxxxxxxxx> wrote:
> 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
>>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2