kaoto icon indicating copy to clipboard operation
kaoto copied to clipboard

JDBC Datasource property should allow to select or create a bean

Open lhein opened this issue 11 months ago • 3 comments

When configuring a JDBC component you have to specify a mandatory Data Source Name. This can be the name of an existing bean (don't use the # for a bean reference, this doesn't work in this case...just use the plain name) or alternatively you can put there one of 2 constants:

  • dataSource
  • default

If you specify one of these 2 constants then the JDBC component will try to lookup a datasource bean from the registry. (See the tooltip in the screenshot below)

Image

Source Example:

Image

lhein avatar Mar 21 '24 06:03 lhein

Ok, if I'm understanding correctly, in this case, the dataSource field should allow to create or select existing beans but without having a # prefix.

lordrip avatar Mar 21 '24 09:03 lordrip

It can be also a predefined constant...see above description

lhein avatar Mar 21 '24 09:03 lhein

yup, I saw that part as well. Judging by the list of custom features this field might require, I think it would be better to provide something custom for this case. It could also automatically add predefined beans for known databases.

lordrip avatar Mar 21 '24 09:03 lordrip