[WFLY-19790] Replaces -ds.xml deprecated filed with Jakarta's DataSou…
…rceDefinition Issue: https://issues.redhat.com/browse/WFLY-19790
@tadamski I am seeing the following warning when using the DataSourceDefinition instead of the -ds.xml
20:12:46,089 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 46) IJ000407: No lazy enlistment available for batch-processing_batch-processing_batch-processing_java:jboss/datasources/batch-processingDS
Perhaps there is a property we need to add to the DataSourceDefinition to prevent this?
@jfdenise FYI it seems Glow is not aware of DataSourceDefinition annotation and reports the following error in this project, if you remove the failOnError
[ERROR] * unbound datasources error: java:jboss/datasources/batch-processingDS
@liweinan IMHO this is still a work in progress, after all it currently replaces one warn with another, and then there is the provisioning error... I suspect we will need server side and glow side changes to make it "proper"!
@kstekovi WDYT?
@emmartins cool!
@tadamski can you please have a look at https://github.com/wildfly/quickstart/pull/973#issuecomment-2448281052 above once you have a chance?
@kstekovi for the record I don't think we should merge this till we have that new warning suppressed or documented, we should not replace one warning with another.
@emmartins @liweinan , DataSourceDefinition is going to be natively supported by WildFly Glow. We have the following PR opened:
- https://github.com/wildfly/wildfly-glow/pull/94
- https://github.com/wildfly/wildfly/pull/18420 Once merged this would require a WildFly Maven Plugin upgrade and usage of WildFly SNAPSHOT (until WF 35.Beta1 is released).
You would then have to remove the explicit h2-datasource add-on, and the fail-on-error.
thanks @jfdenise , I will keep this open till that happens.
@tadamski hello?
@emmartins , FYI, The changes in WildFly have been merged. We are waiting for a new WildFly Maven Plugin release that integrates the support.
@tadamski please please? ^^
@emmartins @darranl sorry for this huge lag!
In order to get rid of the warning cached connection manager has to be turned on, but I don't see such possibility for annotated datasource. I'm going to create a ironjacamar fix for that but I think this PR can be merged.
FYI I have downgraded logging to DEBUG (JBJCA-1513). CCM is problematic in itself and requires refactor (see JBJCA-1494). It is perfectly fine that it is off by default in datasource annotation parsing and shouldn't introduce any cofusing warn messages.
@tadamski thanks for your feedback, personally I see no interest in making this change till the warning is gone, after all this would be replacing one warning (that is already documented) with another.
@emmartins This warning is only informative, tbh I was considering removing it, but after it was downgraded to debug it won't be visible anyway in standard configuration
@tadamski does this means that WFLY 36 will no longer produce this warning?
@emmartins yes