Skip to content

Fix for WFLY-19989, h2-driver layer rule for jakarta DataSourceDefinition annotation#18420

Merged
bstansberry merged 1 commit intowildfly:mainfrom
jfdenise:WFLY-19989
Nov 26, 2024
Merged

Fix for WFLY-19989, h2-driver layer rule for jakarta DataSourceDefinition annotation#18420
bstansberry merged 1 commit intowildfly:mainfrom
jfdenise:WFLY-19989

Conversation

@jfdenise
Copy link
Contributor

@jfdenise jfdenise commented Nov 22, 2024

Issue: https://issues.redhat.com/browse/WFLY-19989

  • With those rules, the h2-driver will be discovered by WildFly Glow (starting 1.2.0.Beta1) based on DataSourceDefinition annotation values.
  • Upgrade to WildFly Glow 1.2.0.Beta2 that includes the rule
  • Added metadata test to cover the rule
  • Updated integration tests with a change of discovered content

This fix is expected by quickstart: wildfly/quickstart#973

@jfdenise jfdenise marked this pull request as draft November 22, 2024 17:11
@jfdenise jfdenise marked this pull request as ready for review November 26, 2024 11:02
@jfdenise jfdenise requested a review from bstansberry November 26, 2024 11:04
@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Nov 26, 2024
@jfdenise
Copy link
Contributor Author

Failure is caused by WildFly Glow, preparing a fix and a 1.2.0.Beta2.


import jakarta.annotation.sql.DataSourceDefinition;

@DataSourceDefinition(name = "x", className = "org.h2.jdbcx.JdbcDataSource")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about another class that uses the url attribute?

@bstansberry
Copy link
Contributor

@jfdenise I'm going to merge this but I think adding a test of the url attribute would be good.

@bstansberry bstansberry merged commit dfc2e0f into wildfly:main Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps-ok Dependencies have been checked, and there are no significant changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants