Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032899
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminorhave not tried2016-05-07 14:332016-05-16 16:43
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionfb8219f1777e
ProjectionnoneETAnoneTarget VersionRR16Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032899: Provide a base class which implements default offline and online behavior in multi-server environments

DescriptionThe feature request is to implement a base class which can be extended to provide correct handling of process requests in multi-server environments where these environments need to be updated/synced on transaction level.

Steps To ReproduceSee above
Proposed SolutionProvide a base class which processes a request and returns the result and in parallel creates the import entry to replicate back to the central server.

This base class should work correctly also in case that the webpos directly calls the central server. In that case it should replicate back to the store server.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks feature request 0031655 closedmtaal WebPOS Synchronous transactions 

-  Notes
(0086293)
mtaal (manager)
2016-05-09 06:19

See documentation:

http://wiki.openbravo.com/wiki/Multi-Server_Process_Calls_Concept [^]

http://wiki.openbravo.com/wiki/How_to_implement_Multi-Server_Process_Calls [^]
(0086297)
hgbot (developer)
2016-05-09 08:40

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 24050dd79e4d13b4be669928a0d5f94307a03732
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 09 08:39:25 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^]

Fixes issue 32899: Provide a base class which implements default offline and online behavior in multi-server environments
Provide base class with advanced multi-server logic to handle different cases, make it possible to run JSONProcessSimple for import entry processing class.
Some utility methods will also be used by related issue for synchronized transactions.

DataSynchronizationProcess.java: move code to super class
JSONProcessSimple.java: add methods from subclass so it can be used by import entry runnable
MobileImportEntryProcessorRunnable.java: make it possible to use JSONProcessSimple as processing class, remain backward compatible
MobileServerController.java: add defensive coding checks, added util methods
MobileServerUtils.java: added util methods, will be used also in subsequent issues
MultiServerDataSynchronizationProcess.java: main code for resolving the issue, new class
OBMOBCUtils.java: added utility method

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/process/JSONProcessSimple.java
M src/org/openbravo/mobile/core/process/MobileImportEntryProcessorRunnable.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerUtils.java
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
A src/org/openbravo/mobile/core/servercontroller/MultiServerDataSynchronizationProcess.java
---
(0086448)
mtaal (manager)
2016-05-14 10:43

Will push/add additional changes to it.
(0086452)
hgbot (developer)
2016-05-16 00:55

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: fb8219f1777e3a984f13784008505bda1de667f3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun May 15 09:31:57 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fb8219f1777e3a984f13784008505bda1de667f3 [^]

Fixes issue 32899: Provide a base class which implements default offline and online behavior in multi-server environments
Extend base class to allow only executing on central and make it possible to change organization for created import entry

DataSynchronizationProcess.java: updated copyright
SecuredJSONProcess.java: throw better json exception by reading underlying db exception, handle if not called from request
MultiServerDataSynchronizationProcess.java: renamed to MultiServerJSONProcess

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/process/SecuredJSONProcess.java
A src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
R src/org/openbravo/mobile/core/servercontroller/MultiServerDataSynchronizationProcess.java
---
(0086472)
migueldejuana (developer)
2016-05-16 16:43

Reviewed

- Issue History
Date Modified Username Field Change
2016-05-07 14:33 mtaal New Issue
2016-05-07 14:33 mtaal Assigned To => mtaal
2016-05-07 14:33 mtaal Triggers an Emergency Pack => No
2016-05-09 06:19 mtaal Review Assigned To => migueldejuana
2016-05-09 06:19 mtaal Note Added: 0086293
2016-05-09 06:19 mtaal Summary Provide an base class which implements default offline and online behavior in multi-server environments => Provide a base class which implements default offline and online behavior in multi-server environments
2016-05-09 06:32 mtaal Relationship added blocks 0031655
2016-05-09 08:40 hgbot Checkin
2016-05-09 08:40 hgbot Note Added: 0086297
2016-05-09 08:40 hgbot Status new => resolved
2016-05-09 08:40 hgbot Resolution open => fixed
2016-05-09 08:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^]
2016-05-14 10:43 mtaal Note Added: 0086448
2016-05-14 10:43 mtaal Status resolved => new
2016-05-14 10:43 mtaal Resolution fixed => open
2016-05-16 00:55 hgbot Checkin
2016-05-16 00:55 hgbot Note Added: 0086452
2016-05-16 00:55 hgbot Status new => resolved
2016-05-16 00:55 hgbot Resolution open => fixed
2016-05-16 00:55 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fb8219f1777e3a984f13784008505bda1de667f3 [^]
2016-05-16 16:43 migueldejuana Note Added: 0086472
2016-05-16 16:43 migueldejuana Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker