All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jumpmind.symmetric.service.impl.cluster-service-sql.xml Maven / Gradle / Ivy

Go to download

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 &lt; ? 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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy