Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

name sessionless-transactions
description Oracle JDBC sample for sessionless transactions on Oracle AI Database.
tags
Database
Java
JDBC
blog_post https://andersswanson.dev/2025/06/17/fire-and-forget-the-power-of-sessionless-transactions/

Sessionless Transactions

This module demonstrates how to use Sessionless Transactions using the Oracle JDBC driver.

For a detailed walkthrough, see Fire-and-Forget: The Power of Sessionless Transactions

Running Example

To run the example, you'll need an Oracle AI Database instance. The example is configured to use a local database container, or you may alter it to use the database instance of your choice. See my article Oracle AI Database for Free? for a list of developer-friendly Oracle AI Database options.

Prerequisites:

  • Java 21
  • Maven
  • Docker

You can run the application like so:

mvn exec:java

You may also test the Sessionless Transactions example using Testcontainers. From the sessionless-transactions directory, run the test with mvn test.

The test begins an order, which may succeed or fail depending on a dynamic timeout.