Amazon QLDB Java tutorial
Important
End of support notice: Existing customers will be able to use Amazon QLDB until end of support on 07/31/2025. For more details, see
Migrate an Amazon QLDB Ledger to Amazon Aurora PostgreSQL
In this implementation of the tutorial sample application, you use the Amazon QLDB driver with the AWS SDK for Java to create a QLDB ledger and populate it with sample data.
As you work through this tutorial, you can refer to the AWS SDK for Java API Reference for management API
operations. For transactional data operations, you can refer to the QLDB Driver for Java API Reference
Note
Where applicable, some tutorial steps have different commands or code examples for each supported major version of the QLDB driver for Java.
Topics
- Installing the Amazon QLDB Java sample application
- Step 1: Create a new ledger
- Step 2: Test connectivity to the ledger
- Step 3: Create tables, indexes, and sample data
- Step 4: Query the tables in a ledger
- Step 5: Modify documents in a ledger
- Step 6: View the revision history for a document
- Step 7: Verify a document in a ledger
- Step 8: Export and validate journal data in a ledger
- Step 9 (optional): Clean up resources