How to load/write required XML data and add POS terminal record for POS - MCS sync

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to load/write required XML data and add POS terminal record for POS - MCS sync

bshrestha
I was following procedure given in https://cwiki.apache.org/OFBIZ/sync-setup-notes-and-example.html for pos sync in ofbiz. But I am unclear about step to loading EntitySync record and loading XML to push and push.  Also I could not find PosTerminal record anywhere neither i find the way to add it in MCS.

Also i did search it in forum i found post with similar problem but with no appropriate solution. So i write in detail what i have done till now. Please help me out with these problem.

Also it will be better if anyone could send/attach necessary working files needed for the synchronization between MCS and POS.


Things i have done till now::

- i uncomment the line with rmif conf in startofbiz.bat. It is as below:
   set RMIIF=-Djava.rmi.server.hostname=192.168.1.111 (where it is my MCS ip-address)

-then I load seed data with "ant run-install-seed" command

- then in framework/service/config/serviceengine.xml file,  I set enity-sync-rmi to MCS as below
In POS instance:
<service-location name="entity-sync-rmi" location="rmi://192.168.1.111:1099/RMIDispatcher"/>
        <service-location name="entity-sync-http" location="http://192.168.1.111:8080/webtools/control/httpService"/>

In MCS instance:
<service-location name="entity-sync-rmi" location="rmi://localhost:1099/RMIDispatcher"/>
        <service-location name="entity-sync-http" location="http://localhost:8080/webtools/control/httpService"/>

- then i start my POS instance in standard web mode with startofbiz.bat

- after these step i was confused while loading xml for EntitySync record. I was not sure if the same EntitySync record given in https://cwiki.apache.org/OFBIZ/sync-setup-notes-and-example.html will work for my project without PSS.
However I loaded EntitySync record (given in example PosSyncSetting.xml) through webtool in MCS and POS instance and run the offline sync from the 'Entity Sync Statas' from Webtool in MCS first them in POS. Then i was seeing many logs in my ofbiz terminal log but i was not sure whether the push and pull was successful or not.

- then i set 'xui session id' and 'faclility ID' in pos-containers.xml as follows
        <property name="xui-session-id" value="MyRetailStore-1"/>
        <property name="facility-id" value="MyRetailStore"/>
         (where MyRetailStore was the facility-id which comes with installation)

- then i added sequenced-id-prefix attribute in delegate in entityengine.xml file of pos instance like below
    <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false" sequenced-id-prefix="MyRetailStore-1">
        <group-map group-name="org.ofbiz" datasource-name="localderby"/>
        <group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>
        <group-map group-name="org.ofbiz.tenant" datasource-name="localderbytenant"/>
    </delegator>

-then i could not find or create posTerminal record anywhere to add it in MCS (I also dont know how to add it in MCS).

- so then i run my POS instance with startofbizpos.bat but could not see any synchronization between MCS and POS. (i dont have PSS)

So please help me out with the clear solutions and suggestions. Thanks in Advance