Javamigrate-kafka-to-oracle

Kafka App Step 2

Migration step that adds OSON serialization to the Kafka-to-TxEventQ sample.

JSONTxEventQKafka#Java#JSON#Kafka#TxEventQ
What this sample helps you learn

This module is step 2 of the [Kafka-to-TxEventQ migration sample](../README.md). It keeps Oracle AI Database Transactional Event Queues as the transport and adds OSON serialization for `WeatherEvent` messages using the Oracle JSON libraries.

What this sample demonstrates

JSON

Document-shaped data and SQL/JSON querying inside Oracle AI Database.

Use when records need flexible structure without leaving SQL, indexes, constraints, and transactions.

TxEventQ

Transactional queues for database-backed events and messaging.

Use when event delivery and data changes need the same transaction boundary.

Kafka

Kafka-compatible eventing and migration paths backed by Oracle AI Database queues.

Use when comparing separate-broker designs or moving Kafka-shaped workloads toward database-native eventing.

Highlights

  • Java 21+
  • Maven 3.9+
  • Oracle AI Database Free running on localhost:1521
  • The testuser schema and TxEventQ grants created with ../testuser.sql