Java Standalone

Transactional Event Queues Multi-Database Replication Example

Multi-database TxEventQ replication sample using JMS and database links.

#Java#JMS#TxEventQ
What this sample helps you learn

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.

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.