gnodet commented on code in PR #26845:
URL: https://github.com/apache/camel/pull/26845#discussion_r4125043049
##########
components/camel-jdbc/src/main/docs/jdbc-component.adoc:
##########
@@ -336,3 +336,27 @@ from("timer://MoveNewCustomersEveryHour?period=3600000")
.setBody(simple("insert into processed_customer
values('${body[ID]}','${body[NAME]}')"))
.to("jdbc:testdb");
----
+
+== Secret Rotation
+
+The JDBC component implements `SecretRotationAware`. When a secret rotation
event is triggered
+(e.g. by a vault provider), the component evicts stale connections from its
connection pools.
+This covers the component-level DataSource as well as any DataSources resolved
by active endpoints
+(e.g. `jdbc:myDs`), with identity-based deduplication so each pool is evicted
at most once.
+
+Currently only HikariCP pools are supported for active eviction via
`softEvictConnections()`.
+The eviction is triggered by calling `getHikariPoolMXBean()` directly on the
`HikariDataSource` instance
+via reflection — JMX registration (`registerMbeans=true`) is *not* required.
+Other pool implementations (including Quarkus Agroal) are not actively evicted
— existing connections
+will be replaced as they expire or are validated by the pool.
Review Comment:
Fixed in 2b58bfc57c3d. Updated all four .adoc files (jdbc/sql source +
catalog) to reflect both HikariCP and Agroal support, and updated the GraalVM
native reflection NOTE to include Agroal classes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]