spring - Symmetric DS and Java -


i need extend symmetric ds functionality extending interfaces provides. has idea development process should be? in documentation explains put jar file (containing classes extending interfaces) , how add them spring context doesnt explain how develop them. i.e. libraries needed interfaces , process should followed develop/test. seems cumbersome each time modify , build jar file copy symmetricds server folder test.

does has experience please? thanks

extend class databasewriterfilteradapter in default package, i.e. no package ...; @ top of implementation. if need access db implement interface isymmetricengineaware , override setter void setsymmetricengine(isymmetricengine) called spring upon initialization. name writer filter implementation example mywriterfilter.

override either 1 or both methods boolean beforewrite(datacontext, table, csvdata) or boolean afterwrite(datacontext, table, csvdata) implementing whatever transformation necessary.

find file ftp-extensions.xml , in same directory add subdirectory conf. add file symmetric-extensions.xml conf subdirectory content:

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"        xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"        default-lazy-init="true">   <bean id="mywriterfilter" class="mywriterfilter" /> </beans> 

test class mywriterfilter other class junit tests , functional tests part of symmetricds performing syncing distributed system.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -