Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034687Retail ModulesStoreServerpublic2016-12-03 14:482017-02-09 12:38
mtaal 
AugustoMauch 
normalminorhave not tried
closedopen 
5
 
RR17Q2 
AugustoMauch
No
0034687: Initialize Symmetric DS without property file
The symmetric ds property file is created to initialize symmetric ds (for example here [1]). However it seems that the api of symmetric ds in this case also allows passing in a properties object. Possibly this was added in latest releases of symmetric ds.

So the question is if we still need to generate a property file (like in [2]). If not then this feature request proposes to initialize symmetric ds from a Properties object created in-memory and logging the properties to a log.debug to allow viewing what is being used to initialize symmetric ds.

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/file/b0d82e5af3c9/src/org/openbravo/replication/symmetricds/task/AbstractSymmetricDsTask.java#l63 [^]

[2]
https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/file/b0d82e5af3c9/src/org/openbravo/replication/symmetricds/util/SynchronizationPropertiesFileBuilder.java [^]
Check the code/links above
Initialize sym-ds from Properties object instead of generated file.
No tags attached.
Issue History
2016-12-03 14:48mtaalNew Issue
2016-12-03 14:48mtaalAssigned To => AugustoMauch
2016-12-03 14:48mtaalTriggers an Emergency Pack => No
2016-12-03 14:49shuehnerIssue Monitored: shuehner
2017-02-09 12:38AugustoMauchReview Assigned To => AugustoMauch
2017-02-09 12:38AugustoMauchNote Added: 0094175
2017-02-09 12:38AugustoMauchStatusnew => closed

Notes
(0094175)
AugustoMauch   
2017-02-09 12:38   
We use SymmetricDS engines in two places:
- SymmetricDS related ant tasks, where we can use a ClientSymmetricEngine, which is not able to route, push, accept pushes, etc
- In our application server, where we must use a ServerSymmetricEngine (which extends ClientSymmetricEngine), because it contains some components needed to support routing, pushing, etc. The ServerSymmetricEngine, as opposed to ClientSymmetricEngine, does not have a constructor that accepts a properties object, only one that accepts a file that contains the configuration of the synchronization