If you want to replicate in Java, use one of the two GoldenGate modules:
GoldenGate for BigData - ready to use adapters for replication directly to HDFS, HBase, Flume, Kafka, Cassandra, MongoDB, JDBC. Documentation Details
GoldenGate for Application Adapters - allows you to write directly to a flat file and JMS. Documentation Details
The documentation also has examples .
source share