| name | sessionless-transactions | |||
|---|---|---|---|---|
| description | Oracle JDBC sample for sessionless transactions on Oracle AI Database. | |||
| tags |
|
|||
| blog_post | https://andersswanson.dev/2025/06/17/fire-and-forget-the-power-of-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
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:javaRun the test SessionlessTransactionsTest.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.