org.jumpmind.symmetric.service.impl.cluster-service-sql.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symmetric-ds Show documentation
Show all versions of symmetric-ds Show documentation
SymmetricDS is an open source database synchronization solution. It is platform-independent,
web-enabled, and database-agnostic. SymmetricDS was first built to replicate changes between 'retail store'
databases and ad centralized 'corporate' database.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd" default-lazy-init="true"> <util:map id="clusterServiceSql"> <entry key="aquireLockSql"> <value> update $[sym.sync.table.prefix]_lock set locking_server_id=?, lock_time=current_timestamp where lock_id=? and lock_action=? and (lock_time is null or lock_time < ? or locking_server_id=?) </value> </entry> <entry key="releaseLockSql"> <value> update $[sym.sync.table.prefix]_lock set lock_time=null where lock_id=? and lock_action=? and locking_server_id=? </value> </entry> <entry key="insertLockSql"> <value>insert into $[sym.sync.table.prefix]_lock (lock_id, lock_action) values(?,?)</value> </entry> </util:map> </beans>