Hi Vince, 
again I've to say, great help!! Now the clouds are about to over. One more
thing I've in mind which i need to clear with you. 

As in our current setting, we have a concept of POS Terminals (So many) and
another server (One Central Server). To do proper synchronization, we
specify IP of the server in entity-sync-rmi of serviceengine.xml. 

For push, its ok, POS Terminals are calling RMIDispatcher of Central Server
(with proper URL), but in case of PULL, it is really confusing to me. Where
we need the definitions of all POS Terminals attached? If our Central Server
is located somewhere on web, for pull is any kind of DNS setting is required
for the network where all POS Terminals are existing for PULL?

I know, may be my mind is struggling around the fact what you said
"direction of the sync (PUSH or PULL) doesn't matter". 

Regards,

Ajey



Vince Clark wrote:
> 
> 1. Please see notes on documentation wiki. 
> http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 
> It clearly states what gets loaded where (POS vs. MCS) and why. 
> 
> 2. This is one thing I left out of my notes that is very important. You
> must create a pos terminal record in the MCS database before starting your
> pos terminal and attempting to sync. The entity is PosTerminal and the
> easiest way to add the record is thru webtools. I will update the wiki
> page. 
> 
> 3. Yes. Again please refer to notes on wiki page. If it is unclear just
> try it and you will see. 
> 
> 4. I don't do windows so I'm not familiar with how to add it to the .bat
> file. Syntax is different on windows for adding env. variables in batch
> files. I think you have to use the word "set" in front of it. You could
> just add the environment variable to your system. 
> 
> 5. Adding the terminals to PosTerminal on MCS and EntitySync records for
> each terminal is the only "awareness" MCS has to the terminals. This was
> one area of confusion for me when going thru this learning curve. You must
> trust that it is the job of the POS terminal to communicate with the
> server, not the other way around. The direction of the sync (PUSH or PULL)
> doesn't matter. The POS terminal initiates all synchronizations. 
> 
> ----- Original Message ----- 
> From: "Ajey.bitin" <[EMAIL PROTECTED]> 
> To: [email protected] 
> Sent: Friday, August 8, 2008 4:00:43 AM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> 
> Hi Vince, 
> 
> Your documentation is really helpful a lot. With the help I got able to 
> resolve some previous configuration mistakes. Thanks. As per your given 
> PosSyncSettings.xml, I'm trying to configure the PUSH and PULL settings.
> I'm 
> having some confusions. 
> 
> 1. The entitygroup 5501 (PULL) and 5506 (PUSH) will be loaded on both POS 
> Terminals and MCS or we have to load 5501 (PULL) on MCS and 5506 (PUSH) on 
> POS Terminal? 
> 
> 2. Where we can spacify the POS Terminal ID, as I know, in demoretail.xml 
> the POS Terminal ID is defined, that is the place where we have to define
> or 
> some where else? 
> 
> 3. EntitySync (PULL) record will be loaded on MCS and EntitySync (PUSH) 
> record on POS Terminal? 
> 
> 4. RMIIF variable is available in startofbiz.sh but not in startofbiz.bat, 
> how I can set this variable in startofbiz.bat, should I simply copy and 
> paste that line? 
> 
> 5. As per your PosSyncSettings.xml, how the MCS will be aware of all the
> POS 
> Terminals attached, is there any place for definition? The way I
> understood 
> to configure is correct or not? The PULL setting on MCS are as follows in
> my 
> MCS: 
> 
> <EntitySync entitySyncId="pos-1" runStatusId="ESR_NOT_STARTED" 
> syncSplitMillis="600000" 
> keepRemoveInfoHours="24" forPullOnly="Y"/> 
> <EntitySyncIncludeGroup entitySyncId="pos-1" entityGroupId="5501"/> 
> 
> <EntitySync entitySyncId="pos-2" runStatusId="ESR_NOT_STARTED" 
> syncSplitMillis="600000" 
> keepRemoveInfoHours="24" forPullOnly="Y"/> 
> <EntitySyncIncludeGroup entitySyncId="pos-2" entityGroupId="5501"/> 
> 
> <!-- POSPULL Scheduled Service --> 
> <RecurrenceRule recurrenceRuleId="POSPULL" untilDateTime="" 
> frequency="HOURLY" intervalNumber="2" countNumber="-1"/> 
> <RecurrenceInfo recurrenceInfoId="POSPULL" startDateTime="2000-01-01 
> 00:15:00.000" recurrenceRuleId="POSPULL" recurrenceCount="0"/> 
> <RuntimeData runtimeDataId="POSPULL"> 
> <runtimeInfo><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 
> <ofbiz-ser> 
> <map-HashMap> 
> <map-Entry> 
> <map-Key> 
> <std-String value="entitySyncId"/> 
> </map-Key> 
> <map-Value> 
> <std-String value="pos-1"/> 
> </map-Value> 
> </map-Entry> 
> <map-Entry> 
> <map-Key> 
> <std-String value="remotePullAndReportEntitySyncDataName"/> 
> </map-Key> 
> <map-Value> 
> <std-String value="remotePullAndReportEntitySyncDataRmi"/> 
> </map-Value> 
> </map-Entry> 
> <map-Entry> 
> <map-Key> 
> <std-String value="entitySyncId"/> 
> </map-Key> 
> <map-Value> 
> <std-String value="pos-2"/> 
> </map-Value> 
> </map-Entry> 
> <map-Entry> 
> <map-Key> 
> <std-String value="remotePullAndReportEntitySyncDataName"/> 
> </map-Key> 
> <map-Value> 
> <std-String value="remotePullAndReportEntitySyncDataRmi"/> 
> </map-Value> 
> </map-Entry> 
> 
> </map-HashMap> 
> </ofbiz-ser> 
> ]]></runtimeInfo> 
> </RuntimeData> 
> <JobSandbox jobId="POSPULL" jobName="Pull Data from MCS" 
> runtimeDataId="POSPULL" runTime="2000-01-01 00:00:00.000" 
> serviceName="runPullEntitySync" poolId="pool" runAsUser="system" 
> recurrenceInfoId="POSPULL"/> 
> =============================================================================================
>  
> 
> I know, I'm asking too many questions, but this of your file has helped me
> a 
> lot and I think I'll be able to set it up well with your great help. 
> 
> Regards, 
> 
> Ajey 
> -- 
> View this message in context:
> http://www.nabble.com/Problems-while-PUSH-and-PULL-entity-sync-process-in-POS-tp16801589p18889161.html
>  
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-while-PUSH-and-PULL-entity-sync-process-in-POS-tp16801589p18902024.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to