{"id":4871,"date":"2025-09-01T10:25:00","date_gmt":"2025-09-01T10:25:00","guid":{"rendered":"https:\/\/www.istratech.hr\/?p=4871"},"modified":"2026-06-01T09:06:40","modified_gmt":"2026-06-01T09:06:40","slug":"virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair","status":"publish","type":"post","link":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/","title":{"rendered":"Virtual Java threads and Oracle &#8220;virtual transactions&#8221; &#8211; an ideal pair?"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>ABSTRACT<\/strong><\/p>\n<p>In September 2023, the Java programming language introduced <strong>Java virtual threads<\/strong>  in its long-term support version 21 (previously available only as a prototype solution).<br \/>\nWhile Java non-virtual (platform) threads are mapped 1:1 to operating system threads, multiple Java virtual threads can run on a single platform thread. This makes their number practically unlimited, allowing for the development of code that is as efficient as asynchronous code, but more readable, easier to debug, and provides clearer error reporting, <em>exceptions<\/em>.<\/p>\n<p>In Oracle Database 26ai (formerly known as 23ai), Oracle introduced <strong>sessionless transactions<\/strong>, which are referred to in this paper as &#8220;virtual transactions&#8221; to reflect their similarity to Java virtual threads. Traditionally, transaction management requires connection and session resources to be bound to the transaction throughout its entire lifecycle. Consequently, a session\/connection can only be released after the transaction has ended, often resulting in the underutilization of sessions and connections.<\/p>\n<p>With sessionless transactions, once a transaction is started, we have the flexibility to suspend and resume it during its lifecycle. The session\/connection can be returned to the pool of free sessions\/connections and reused by other transactions.<br \/>\nBoth of these features &#8211; Java virtual threads and Oracle &#8220;virtual transactions&#8221; are highly beneficial on their own. Using them simultaneously could be the ideal match. However, there is also a &#8220;third player&#8221;! Together, they can significantly impact the architectural shift of web applications (working with databases).<br \/>\n<div class=\"more\"><a href=\"http:\/\/www.istratech.hr\/wp-content\/uploads\/2026\/03\/CASE2026_Sirotic_2.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">VIEW LECTURE<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In September 2023, Java 21 brought a revolution through virtual threads, while Oracle, in version 26ai (23ai), introduced the concept of &#8220;virtual transactions.&#8221; In the following sections, discover how the synergy of these technologies, along with a &#8220;third player,&#8221; is fundamentally changing the architecture of modern web applications.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_exactmetrics_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_themeisle_gutenberg_block_has_review":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[172,329],"tags":[],"class_list":["post-4871","post","type-post","status-publish","format-standard","hentry","category-blog-en","category-case-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Virtual Java threads and Oracle &quot;virtual transactions&quot; - an ideal pair? &#8211; Istra Tech<\/title>\n<meta name=\"description\" content=\"Discover how sinergy of Virtual Java Threads and Oracle &quot;virtual transactions&quot; are reshaping web application architecture.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Virtual Java threads and Oracle &quot;virtual transactions&quot; - an ideal pair? &#8211; Istra Tech\" \/>\n<meta property=\"og:description\" content=\"Discover how sinergy of Virtual Java Threads and Oracle &quot;virtual transactions&quot; are reshaping web application architecture.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/\" \/>\n<meta property=\"og:site_name\" content=\"Istra Tech\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-01T10:25:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T09:06:40+00:00\" \/>\n<meta name=\"author\" content=\"Istratech Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Istratech Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/\"},\"author\":{\"name\":\"Istratech Admin\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/#\\\/schema\\\/person\\\/e56f98c854e5f471a7f577bd59ad397d\"},\"headline\":\"Virtual Java threads and Oracle &#8220;virtual transactions&#8221; &#8211; an ideal pair?\",\"datePublished\":\"2025-09-01T10:25:00+00:00\",\"dateModified\":\"2026-06-01T09:06:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/\"},\"wordCount\":246,\"articleSection\":[\"Blog\",\"CASE\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/\",\"url\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/\",\"name\":\"Virtual Java threads and Oracle \\\"virtual transactions\\\" - an ideal pair? &#8211; Istra Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/#website\"},\"datePublished\":\"2025-09-01T10:25:00+00:00\",\"dateModified\":\"2026-06-01T09:06:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/#\\\/schema\\\/person\\\/e56f98c854e5f471a7f577bd59ad397d\"},\"description\":\"Discover how sinergy of Virtual Java Threads and Oracle \\\"virtual transactions\\\" are reshaping web application architecture.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Po\u010detna stranica\",\"item\":\"https:\\\/\\\/www.istratech.hr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Virtual Java threads and Oracle &#8220;virtual transactions&#8221; &#8211; an ideal pair?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/\",\"name\":\"Istra Tech\",\"description\":\"Digitalizacija sustava u turizmu, hotelijerstvu i ugostiteljstvu\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/#\\\/schema\\\/person\\\/e56f98c854e5f471a7f577bd59ad397d\",\"name\":\"Istratech Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g\",\"caption\":\"Istratech Admin\"},\"url\":\"https:\\\/\\\/www.istratech.hr\\\/en\\\/author\\\/istratech_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Virtual Java threads and Oracle \"virtual transactions\" - an ideal pair? &#8211; Istra Tech","description":"Discover how sinergy of Virtual Java Threads and Oracle \"virtual transactions\" are reshaping web application architecture.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/","og_locale":"en_US","og_type":"article","og_title":"Virtual Java threads and Oracle \"virtual transactions\" - an ideal pair? &#8211; Istra Tech","og_description":"Discover how sinergy of Virtual Java Threads and Oracle \"virtual transactions\" are reshaping web application architecture.","og_url":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/","og_site_name":"Istra Tech","article_published_time":"2025-09-01T10:25:00+00:00","article_modified_time":"2026-06-01T09:06:40+00:00","author":"Istratech Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Istratech Admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/#article","isPartOf":{"@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/"},"author":{"name":"Istratech Admin","@id":"https:\/\/www.istratech.hr\/en\/#\/schema\/person\/e56f98c854e5f471a7f577bd59ad397d"},"headline":"Virtual Java threads and Oracle &#8220;virtual transactions&#8221; &#8211; an ideal pair?","datePublished":"2025-09-01T10:25:00+00:00","dateModified":"2026-06-01T09:06:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/"},"wordCount":246,"articleSection":["Blog","CASE"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/","url":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/","name":"Virtual Java threads and Oracle \"virtual transactions\" - an ideal pair? &#8211; Istra Tech","isPartOf":{"@id":"https:\/\/www.istratech.hr\/en\/#website"},"datePublished":"2025-09-01T10:25:00+00:00","dateModified":"2026-06-01T09:06:40+00:00","author":{"@id":"https:\/\/www.istratech.hr\/en\/#\/schema\/person\/e56f98c854e5f471a7f577bd59ad397d"},"description":"Discover how sinergy of Virtual Java Threads and Oracle \"virtual transactions\" are reshaping web application architecture.","breadcrumb":{"@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.istratech.hr\/en\/virtual-java-threads-and-oracle-virtual-transactions-an-ideal-pair\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Po\u010detna stranica","item":"https:\/\/www.istratech.hr\/"},{"@type":"ListItem","position":2,"name":"Virtual Java threads and Oracle &#8220;virtual transactions&#8221; &#8211; an ideal pair?"}]},{"@type":"WebSite","@id":"https:\/\/www.istratech.hr\/en\/#website","url":"https:\/\/www.istratech.hr\/en\/","name":"Istra Tech","description":"Digitalizacija sustava u turizmu, hotelijerstvu i ugostiteljstvu","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.istratech.hr\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.istratech.hr\/en\/#\/schema\/person\/e56f98c854e5f471a7f577bd59ad397d","name":"Istratech Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08879edf0fbdb4c56d3bb4908200f600e0bcbb50c215e720817e00946f6b4822?s=96&d=mm&r=g","caption":"Istratech Admin"},"url":"https:\/\/www.istratech.hr\/en\/author\/istratech_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/posts\/4871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/comments?post=4871"}],"version-history":[{"count":0,"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/posts\/4871\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/media?parent=4871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/categories?post=4871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.istratech.hr\/en\/wp-json\/wp\/v2\/tags?post=4871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}