Hello friends,

          I have done few changes for data Syncronization in my pos System.
I have one main server and one POS.But i have not found any data Synch..... 
I am coping the file in which i have change. PLease give me the
direction.and help in where i am wrong.

These file are these.
DemoRetail.xml
<!----------------
Changes--------------------------------------------------->
<!-- use this one when the scheduled PUSH service is enabled -->
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<entity-engine-xml>
    <UserLogin userLoginId="1" partyId="admin"
currentPassword="356a192b7913cf4c54574d18bdf24699395428d4" passwordHint="The
Number One, Yeah, Literally"/>
    <UserLogin userLoginId="2" partyId="ltdadmin"
currentPassword="a54bed37c5b3b28ee30760b5c8d1bbd735ef10cf" passwordHint="The
Number Two, Yeah, Literally"/>
    <UserLoginSecurityGroup groupId="POSCLERK" userLoginId="1"
fromDate="2001-01-01 12:00:00.0"/>
    <UserLoginSecurityGroup groupId="POSCLERK" userLoginId="2"
fromDate="2001-01-01 12:00:00.0"/>
    <Facility facilityId="MyRetailStore" ownerPartyId="Company"
facilityTypeId="RETAIL_STORE" facilityName="My Retail Store"
description="Example Retail (POS) Store"/>
    <ContactMech contactMechId="9300" contactMechTypeId="POSTAL_ADDRESS"/>
    <ContactMech contactMechId="9301" contactMechTypeId="TELECOM_NUMBER"/>
    <PostalAddress contactMechId="9300" toName="My Retail Store" attnName=""
address1="7 E. 8th St. #308" city="New York" postalCode="10003"
countryGeoId="USA" stateProvinceGeoId="NY"/>
    <TelecomNumber contactMechId="9301" areaCode="212"
contactNumber="555-5555"/>
    <FacilityContactMech facilityId="MyRetailStore" contactMechId="9300"
fromDate="2001-05-13 12:00:00.0"/>
    <FacilityContactMech facilityId="MyRetailStore" contactMechId="9301"
fromDate="2001-05-13 12:00:00.0"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="PUR_RET_LOCATION"
fromDate="2004-07-26 16:49:50.161"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="GENERAL_LOCATION"
fromDate="2004-07-26 16:49:54.497"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="PAYMENT_LOCATION"
fromDate="2004-07-26 16:49:58.747"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="BILLING_LOCATION"
fromDate="2004-07-26 16:50:05.459"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="SHIP_ORIG_LOCATION"
fromDate="2004-07-26 16:50:09.65"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9300" contactMechPurposeTypeId="SHIPPING_LOCATION"
fromDate="2004-07-26 16:50:13.755"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9201" contactMechPurposeTypeId="PHONE_SHIPPING"
fromDate="2001-05-13 12:00:00.0"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9201" contactMechPurposeTypeId="PHONE_SHIP_ORIG"
fromDate="2001-05-13 12:00:00.0"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9301" contactMechPurposeTypeId="PHONE_PAYMENT"
fromDate="2004-07-26 16:48:47.311"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9301" contactMechPurposeTypeId="PHONE_BILLING"
fromDate="2004-07-26 16:48:51.652"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIP_ORIG"
fromDate="2004-07-26 16:49:04.176"/>
    <FacilityContactMechPurpose facilityId="MyRetailStore"
contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIPPING"
fromDate="2004-07-26 16:49:09.267"/>

    <ProductStore productStoreId="9100" storeName="OFBiz Physical Retail
Store" companyName="Open For Business" title="Open For Retail"
        subtitle="Part of the Open For Business Family of Open Source
Software" payToPartyId="Company" daysToCancelNonPay="30" prorateShipping="Y"
prorateTaxes="Y"
        inventoryFacilityId="MyRetailStore" oneInventoryFacility="Y"
checkInventory="N" reserveInventory="Y"
        reserveOrderEnumId="INVRO_FIFO_REC" requireInventory="N"
isImmediatelyFulfilled="Y"
        defaultLocaleString="en_US" defaultCurrencyUomId="USD"
allowPassword="Y" explodeOrderItems="N" retryFailedAuths="N"
manualAuthIsCapture="Y"
        headerApprovedStatus="ORDER_APPROVED"
itemApprovedStatus="ITEM_APPROVED" digitalItemApprovedStatus="ITEM_APPROVED"
headerDeclinedStatus="ORDER_REJECTED"
        itemDeclinedStatus="ITEM_REJECTED"
headerCancelStatus="ORDER_CANCELLED" itemCancelStatus="ITEM_CANCELLED"
orderNumberPrefix="RS"
        authDeclinedMessage="There has been a problem with your method of
payment. Please try a different method or call customer service."
        authFraudMessage="Your order has been rejected and your account has
been disabled due to fraud."
        authErrorMessage="Problem connecting to payment processor."
        styleSheet="" headerLogo="" autoApproveInvoice="Y"
shipIfCaptureFails="Y" autoApproveOrder="Y"/>

    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_AUTH"
paymentService="alwaysApproveWithCaptureCCProcessor"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="CREDIT_CARD"
paymentServiceTypeEnumId="PRDS_PAY_RELEASE" paymentService="testCCRelease"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="CREDIT_CARD"
paymentServiceTypeEnumId="PRDS_PAY_CAPTURE" paymentService="testCCCapture"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_REAUTH"
paymentService="alwaysApproveCCProcessor"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_REFUND"
paymentService="testCCRefund"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="EFT_ACCOUNT" paymentServiceTypeEnumId="PRDS_PAY_AUTH"
paymentService="alwaysApproveEFTProcessor"/>
    <ProductStorePaymentSetting productStoreId="9100"
paymentMethodTypeId="GIFT_CARD" paymentServiceTypeEnumId="PRDS_PAY_EXTERNAL"
paymentService=""/>

    <ProductStoreFacility productStoreId="9100" facilityId="MyRetailStore"
fromDate="2001-05-13 12:00:00.0"/>
    <ProductStoreRole partyId="admin" roleTypeId="SALES_REP"
productStoreId="9100" fromDate="2001-05-13 12:00:00.0"/>

    <SimpleSalesTaxLookup productStoreId="9100" countryGeoId="_NA_"
stateProvinceGeoId="_NA_" taxCategory="_NA_" fromDate="2001-01-01
00:00:00.001" description="10% OFB Tax" minItemPrice="0.00"
minPurchase="0.0" taxShipping="N" salesTaxPercentage="0.1"/>

    <ProductStoreCatalog productStoreId="9100" prodCatalogId="DemoCatalog"
fromDate="2001-05-13 12:00:00.0" sequenceNum="1"/>

    <Facility facilityId="MyRetailStore" productStoreId="9100"
defaultInventoryItemTypeId="NON_SERIAL_INV_ITEM"/>

    <!-- Use these SKUs in the POS terminal -->
    <GoodIdentification goodIdentificationTypeId="SKU" productId="GZ-1000"
idValue="12345" lastUpdatedStamp="2005-07-12 06:31:15.251"
lastUpdatedTxStamp="2005-07-12 06:31:14.897" createdStamp="2005-07-12
06:31:15.251" createdTxStamp="2005-07-12 06:31:14.897"/>
    <GoodIdentification goodIdentificationTypeId="OTHER_ID"
productId="GZ-1001" idValue="12345" lastUpdatedStamp="2005-07-12
06:31:15.251" lastUpdatedTxStamp="2005-07-12 06:31:14.897"
createdStamp="2005-07-12 06:31:15.251" createdTxStamp="2005-07-12
06:31:14.897"/>
    <GoodIdentification goodIdentificationTypeId="SKU" productId="GZ-1001"
idValue="67890" lastUpdatedStamp="2005-07-12 06:31:32.803"
lastUpdatedTxStamp="2005-07-12 06:31:32.749" createdStamp="2005-07-12
06:31:32.803" createdTxStamp="2005-07-12 06:31:32.749"/>


    <!-- use this one when the scheduled PUSH service is enabled -->
    <PosTerminal posTerminalId="pos-2" facilityId="10000"
pushEntitySyncId="8806"/>
    -->

    <!-- use this one when the scheduled PUSH service is not enabled -->
    <PosTerminal posTerminalId="pos-2" facilityId="10000"/>

    <!-- NOTE: this should be commented out for testing the POS without
inventory, but should be included on PSS and MCS machines to handle
inventory issuance -->
    <!-- <InventoryItem facilityId="MyRetailStore" inventoryItemId="9100"
inventoryItemTypeId="NON_SERIAL_INV_ITEM" productId="GZ-1001"/>
    <InventoryItemDetail inventoryItemId="9100"
inventoryItemDetailSeqId="0001" availableToPromiseDiff="20"
quantityOnHandDiff="20"/> -->
    <!-- NOTE: for testing now leaving out GZ-5005 which is the other
default product with a button in the POS, should create a new inventory item
with negative QOH -->
</entity-engine-xml>


-------------------------------------End-----------------------------------------

2. Pos-containers.xml
--------------------------------Start(Changes)--------------------------------------------
 <container name="pos-container"
class="org.ofbiz.pos.container.PosContainer">
        <property name="startup-directory"
value="specialpurpose/pos/config/"/>
        <property name="startup-file" value="xpos.properties"/>
        <property name="class-package-name " value="net.xoetrope.swing"/>
        <property name="dispatcher-name" value="POSDispatcher"/>
        <property name="delegator-name" value="default"/>
        <property name="xui-session-id" value="pos-2"/>
        <property name="facility-id" value="10000"/>        
        <property name="look-and-feel"
value="com.jgoodies.looks.plastic.PlasticLookAndFeel"/>
    </container>
--------------------------------------End-----------------------------


3.PosSyncSettings.xml
--------------------------------Start(Changes)------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<!-- To know more about this setting please read the documentation
http://docs.ofbiz.org/x/chM -->

<entity-engine-xml>
<!-- MCS->POS Per Store Server to POS Terminal
     This data is loaded on the Master Central Server -->
    <EntityGroup entityGroupId="5501" entityGroupName="POS: Per Store Server
to POS Terminal"/>
    <!-- these are used to update sync settings on the POS terminals from
the central server -->
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/>
    <!-- this is the general product information needed for pricing,
promotions, basic product info, etc -->
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/>

    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/>
    <!-- org.ofbiz.product.category is needed for certain promotions,
probably won't be used much for category browsing in the POS -->
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/>
    <!-- org.ofbiz.party.party may be needed for certain promotions -->
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.security.login" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.security.securitygroup"
applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="5501"
entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/>
 
<!-- POS->MCS Per Store Server to Central Server -->
    <EntityGroup entityGroupId="8806" entityGroupName="POS: Per Store Server
to Central Server"/>
    <!-- org.ofbiz.party.party may be needed for order related information,
like party roles or contact info etc -->
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/>
    <!-- all order and related information, including payment, etc info -->
    <EntityGroupEntry entityGroupId="8806" entityOrPackage="org.ofbiz.order"
applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/>
    <!-- include inventory and issuance info -->  
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.shipment.issuance" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.pos.PosTerminalLog" applEnumId="ESIA_INCLUDE"/>
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.pos.PosTerminalState" applEnumId="ESIA_INCLUDE"/>
    <!-- include POS transactions -->  
    <EntityGroupEntry entityGroupId="8806"
entityOrPackage="org.ofbiz.pos.PosTerminalInternTx"
applEnumId="ESIA_INCLUDE"/>


    <!-- Some examples of EntitySync settings for pulling and pushing data
around -->
    <!-- POS example meant to be used for pushing data from POS to MCS -->
    <EntitySync entitySyncId="5501" runStatusId="ESR_NOT_STARTED"
syncSplitMillis="600000" targetServiceName="remoteStoreEntitySyncDataRmi"  
            keepRemoveInfoHours="24" forPushOnly="Y"/>
    <EntitySyncIncludeGroup entitySyncId="5501" entityGroupId="8806"/>
 
       <!-- POS example meant to be used for pulling data from MCS to POS
-->
    <!-- NOTE: for pulling setup the EntitySync record lives on the server
the data is pulled from and should ONLY BE USED FOR ONE CLIENT! -->
    <EntitySync entitySyncId="pos-2" runStatusId="ESR_NOT_STARTED"
syncSplitMillis="600000"  
            keepRemoveInfoHours="24" forPullOnly="Y"/>
    <EntitySyncIncludeGroup entitySyncId="pos-2" entityGroupId="5501"/>
 
    <!-- POS Push Scheduled Service -->
   
    <RecurrenceRule recurrenceRuleId="8806" untilDateTime=""
frequency="MINUTELY" intervalNumber="5" countNumber="-1"/>
    <RecurrenceInfo recurrenceInfoId="8806" startDateTime="2000-01-01
00:00:00.000" recurrenceRuleId="8806" recurrenceCount="0"/>
    <RuntimeData runtimeDataId="8806">
        <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="8806"/>
              </map-Value>
            </map-Entry>
          </map-HashMap>
        </ofbiz-ser>
        ]]></runtimeInfo>
    </RuntimeData>
    <JobSandbox jobId="8806" jobName="Push POS Data" runtimeDataId="8806"
runTime="2000-01-01 00:00:00.000" serviceName="runEntitySync" poolId="pool"
runAsUser="system" recurrenceInfoId="8806"/>
   
 
    <!-- POSPULL Scheduled Service -->
    <RecurrenceRule recurrenceRuleId="5501" untilDateTime=""
frequency="HOURLY" intervalNumber="2" countNumber="-1"/>
    <RecurrenceInfo recurrenceInfoId="5501" startDateTime="2000-01-01
00:15:00.000" recurrenceRuleId="5501" recurrenceCount="0"/>
    <RuntimeData runtimeDataId="5501">
        <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-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="5501" jobName="Pull Data from MCS"
runtimeDataId="5501" runTime="2000-01-01 00:00:00.000"
serviceName="runPullEntitySync" poolId="pool" runAsUser="system"
recurrenceInfoId="5501"/>
 
-----------------------------------------------End-------------------------------
4. entityengine.xml
<group-map group-name="org.ofbiz" datasource-name="localderby"
sequenced-id-prefix="pos2"/>
        <group-map group-name="org.ofbiz.olap"
datasource-name="localderbyolap"/>

5. Serviceengine.xml
<service-location name="entity-sync-rmi"
location="rmi://192.168.0.00:1099/RMIDispatcher"/>
Thanks in Advance
Gopal Bisht




jacques.le.roux wrote:
> 
> Gopal,
> 
> In order to clarify and help you understand I have slightly amended the
> doc. Please, let me know if it really helps you or if you 
> need more informations.
> 
> Jacques
> 
> From: "gopalbi" <[EMAIL PROTECTED]>
>>
>> Hello friends,
>>
>> I need your great help,
>>
>>  I am working on Syncronization between POS or MCS therefore i have
>> changes
>> according to this document.
>>
>> http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example
>>
>> But if go to Step by Step Instructions. The first four point are ok but
>> 5th
>> to 9th i can't understand what is want to say. so please help me.
>> What he actaully say.
>>
>> Thanks & Regards:
>> Gopal Bisht
>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/I-need-your-help-data-Syncronization--tp19065502p19065502.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I-need-your-help-data-Syncronization--tp19065502p19158798.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to