Thanks Jacques,
1. I am trying to implement POS - MCS
2. there was nothing done in the service.xml that wrote earlier i was meant
to mean serviceengine.xml
3. below is how i followed
This is how i followed the notice and example:
POS.
- Setup POS terminal with database hosted locally
- In startofbiz.sh/bat set RMIIF to localhost (uncomment the line.)
*set RMIIF=-Djava.rmi.server.hostname=150.100.100.10found in
C:\Base\apache-ofbiz\tools*
- Create empty ofbiz database and populate with seed data (ant
run-install-seed).
Note that for testing/learning you can load demo data as well.
For a production environment you will need to only load seed, then do
all of your organization specific setup such as accounting, facilities,
stores, etc.
* This database is created on the machine having the POS application*
- framework/service/config/serviceengine.xml - enity-sync-rmi set to MCS.
*<service-location name="main-rmi"
location="rmi://localhost:1099/RMIDispatcher"/> <service-location
name="main-http"
location="http://localhost:8080/webtools/control/httpService
<http://localhost:8080/webtools/control/httpService>"/>
<service-location name="entity-sync-rmi"
location="rmi://150.100.100.10:1099/RMIDispatcher
<http://150.100.100.10:1099/RMIDispatcher>"/> <service-location
name="entity-sync-http"
location="http://localhost:8080/webtools/control/httpService
<http://localhost:8080/webtools/control/httpService>"/>
<service-location name="rita-rmi"
location="rmi://localhost:1099/RMIDispatcher"/> <service-location
name="eedcc-test"
location="http://localhost:8080/webtools/control/httpService
<http://localhost:8080/webtools/control/httpService>"/>*
- Start POS instance(s) (the OFBiz instance(s) which runs the POS, aka
POS terminal(s)) in standard mode (web interface)
* I started the POS application with java -jar ofbiz.jar -pos
command*
- Load EntitySync record for PULL on MCS instance (the OFBiz instance
which runs the MCS)
*not sure on how to load this however i decided to load demo*
>
- Load XML data you want to setup on POS instance to trigger PULL sync
*not sure on how to load this.*
- Load EntitySync PUSH on POS instance(s).
*not sure on how to load this however i decided to load demo*
- When pull is finished, load XML data you want to setup to trigger PUSH
*not sure on how to load this.*
- Shutdown POS instance(s)
- pos-containers.xml on POS instance(s) - set xui session id =
<facilityId-pos terminal number> ex. 10020-1.
* i set the POS <property name="xui-session-id" value="pos-1"/>*
- pos-containers.xml on POS instance(s) - set faclility ID =
<facilityId) ex. 10020.
*the facility was set as: <property name="facility-id"
value="10010"/>*
- Don't forget to change entityengine.xml on all POS instance(s) to
include a prefix for record id's.
Otherwise you will get record id conflicts when instance(s) push records
to the MCS.
<delegator name="default" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main"
distributed-cache-clear-enabled="false" *sequenced-id-prefix="10010-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"/> -->
<group-map group-name="org.ofbiz" datasource-name="localmysql"/>
<group-map group-name="org.ofbiz.olap"
datasource-name="localmysqlolap"/>
<group-map group-name="org.ofbiz.tenant"
datasource-name="localmysqltenant"/>
<!-- <group-map group-name="org.ofbiz"
datasource-name="localpostnew"/>
<group-map group-name="org.ofbiz.olap"
datasource-name="localpostolap"/>
<group-map group-name="org.ofbiz.tenant"
datasource-name="localposttenant"/> -->
</delegator>
On Sat, Apr 11, 2015 at 11:44 PM, Jacques Le Roux <
[email protected]> wrote:
>
>
> Le 11/04/2015 17:08, Kash Bosco a écrit :
>
>> Noted Jacques. though entity sync is still Torturing me.
>>
>> Bosco
>>
>> On Sat, Apr 11, 2015 at 3:39 PM, Jacques Le Roux <
>> [email protected]> wrote:
>>
>> Hi Kash,
>>>
>>> You don't need to send to [email protected] (you should
>>> not
>>> actually)
>>>
>>> I did not get the time to review your question yet, but I did not forget
>>> and if you still need some help I hope to have a look this weekend
>>>
>>> Jacques
>>>
>>>
>>> Le 09/04/2015 13:46, Kash Bosco a écrit :
>>>
>>> Good day Every one,
>>> I am trying to implement the sync mechanism using the Sync Setup Notes
>>> where i have a main server that is managed by the central store/
>>> warehouse.
>>> i have 2 server each with a database, and a POS terminals used for
>>> selling.
>>>
>>
> It's not clear here. I understand you have a main server (we call it MCS
> at https://cwiki.apache.org/confluence/display/OFBIZ/Sync+
> Setup+Notes+and+Example)
> But what are the 2 servers, PSS or POS? And you speak about " a POS
> terminals", you mean only 1 machine?
>
>> Management at each of these terminal/server requisitions for items
>>> from the store when ever there is need. i followed the Sync Setup Notes
>>> and modified 3 areas (entity-sync-rmi, in the servece.xml,
>>> pos-containers.xml
>>> where i changed the facility id to 10000 and 10010 for the two
>>> terminals, entityengine.xml
>>> to include the sequenced-id-prefix="10010-1 and
>>> sequenced-id-prefix="10000-2
>>> for the two terminal).
>>>
>>
> OK I guess you have a MCS and 2 POS
>
> How ever, 1. when transaction are made the MCS server does not get the
>>> inventory updates of each terminal. 2. The stores manager cannot
>>> transfer/supply via purchase order each server with items so they are
>>> running out of stock. 3. How best can i implement the requisition
>>> process.
>>> Please advise where Am i going wrong.
>>>
>>
> What did you do in (I guess) framework/entityext/servicedef/services.xml ?
> Did you change anything in framework/service/config/serviceengine.xml ?
>
> How did you follow the flow/s, what mean/s did you use?
>
> Jacques
>
>
>>> Bosco
>>>
>>>
>>>
>>>