Last year, holiday sales topped $1 trillion for the first time, up 4.1%, according to …
![]()
Cloud-native POS platform for seamless omnichannel customer experience.
![]()
A single hub for all promotions campaigns.
A comprehensive solution designed to simplify and give you ownership of the inventory lifecycle.
A native post-transaction reconciliation module built into Jumpmind Commerce.
![]()
The most advanced synchronization solution for databases and file systems.
![]()
Data configuration and batch automation across different disparate systems and vendors.
Last year, holiday sales topped $1 trillion for the first time, up 4.1%, according to …
The store is becoming a relationship, not just a transaction The store is being talked …
I spent this week at eTail Boston, and if you looked at the agenda, you’d …
Learn how to replicate each tenant database in a central SQL Server to its own edge database with SymmetricDS. One routing rule and a matching external ID keep tenants isolated.
Quick answer: Agentic AI systems need data that is current, consistent across systems, available even …
This was our second year at Big Data LDN, and attendance felt just as strong …
Introduction In retail, POS updates have traditionally been quarterly events at best. From October through …
Jumpmind Powers Point of Sale and Promotions Execution for Landmark Retail, One of the Largest …
Retail Technology Leader Jumpmind to Enable Mobile Point of Sale and Inventory Management for DTLR/VILLA …
We built 3.18 because the question we kept hearing from customers changed. It used to …
The offering gives security teams a practical path to risk management and accountable AI COLUMBUS …
The insights have implications for retail technology in the store: it must help mind information …
![]()
Cloud-native POS platform for seamless omnichannel customer experience.
![]()
A single hub for all promotions campaigns.
A comprehensive solution designed to simplify and give you ownership of the inventory lifecycle.
A native post-transaction reconciliation module built into Jumpmind Commerce.
![]()
The most advanced synchronization solution for databases and file systems.
![]()
Data configuration and batch automation across different disparate systems and vendors.
In addition to replicating data changes from source to target you may also wish to populate a table on the target to monitor all events. In this blog I will show you how to create a simple load filter that will record all changes captured by SymmetricDS into a simple audit table.
This table will hold just four columns to record the change.
First lets create the audit table on the target node by running the following SQL statement.
create table audit ( table_name varchar(50), event varchar(1), pk varchar(50), pk_columns varchar(250) );
In the SymmetricDS Pro web console go to the Configure->Load Filters screen
Create a new Load Filter of type BSH with the target table set to * so that all tables setup for replication will be filtered. You will also need to select the appropriate group link, remember the load filter will fire on the target node.
After saving the filter select the edit scripts button.
Select the “After Write Script” from the drop so that the script we will create will fire after each data event is processed.
Provide the following beanshell code to the text editor and hit save.
String tableName = table.getName();
String eventType = data.getDataEventType().getCode();
String[] pkData = data.getPkData(table);
String[] pkCol = table.getPrimaryKeyColumnNames();
String pkDataAsString = "";
String pkColAsString = "";
for (int i=0; i < pkData.length; i++) {
if (pkDataAsString.length() > 0) {
pkDataAsString = pkDataAsString + ",";
pkColAsString = pkColAsString + ",";
}
pkDataAsString = pkDataAsString + pkData[i];
pkColAsString = pkColAsString + pkCol[i];
}
String sql = "insert into change_data_events (table_name, event, pk, pk_columns)
values (?,?,?,?)";
engine.getSqlTemplate().update(sql,
new Object[] { tableName, eventType, pkDataAsString, pkColAsString});
Save your script and your all set to start recording change data events into your new table.




