You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/java/core-spring/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -420,6 +420,19 @@ Optional<MetaObject> user = metaDataService.findMetaObjectByNameOptional("User")
420
420
- Automatic cleanup when Spring context shuts down
421
421
- Minimal memory overhead for Spring integration
422
422
423
+
## Virtual threads (Java 21)
424
+
425
+
OMDB is a synchronous JDBC API and is safe to run on JVM virtual threads. An audit of
426
+
the OMDB blocking paths found no `synchronized` monitor held across a JDBC call (the only
427
+
synchronized methods guard in-memory state — the driver lazy-init, the event-listener
428
+
list, and per-object attribute maps), so OMDB does not pin carrier threads.
429
+
430
+
To run a Spring Boot 3.2+ application's request handling on virtual threads, set:
431
+
432
+
spring.threads.virtual.enabled=true
433
+
434
+
The starter does not enable this for you — it is the application's choice.
435
+
423
436
---
424
437
425
438
**This Spring integration provides seamless MetaObjects functionality within Spring applications while maintaining all the framework's powerful features.**
0 commit comments