This module demonstrates how to propagate messages between Oracle AI Database Transactional Event Queues (TXEventQ) in two separate databases using JMS (Jakarta Messaging) APIs. It showcases queue-to-queue replication over a database link, allowing messages published to a topic in a source database to be automatically propagated to a topic in a destination database. The methods used in this module work with JMS or any kind of TxEventQ payload, including JSON, RAW, and ADT.
What this sample demonstrates
TxEventQ
Transactional queues for database-backed events and messaging.
Use when event delivery and data changes need the same transaction boundary.
Highlights
- Setup scripts for source and destination databases to create users, queues, and configure propagation.
- Java classes for producing messages (reading from console) to the source topic and consuming messages from the destination topic.