on 08-14-2007 3:11 PM
Hi experts!
I develop smart synchronization application (2-way). After synchronizing I can see on MI client all data, than I change it and with next synchronization I tried to send it to midleware.
Here is a problem,data doesn't appear after synchronization at midleware but I need to synchronize few times to see it this data at midleware.
Could you give me some advice to see data immediately after first synchronization?
Thanks in advance!
Michal
hi michal,
one thing you can do is to define you syncbo are synchronous.
atribute reqDirectSync is set to true.
depending on the volume of data you are trying to upload, and the queue of uploaded data into the MI middleware, there will be some delay until your
message is processed by the synchronizer and got reflected into the backend.
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for reply
I tried to set reqDirectSync to true and I also put some code
SyncBoOutDeltaFacade dF = SmartSyncRuntime.getInstance().getSyncBoOutDeltaFacade();
dF.setSendType(syncBoDescriptor, SyncBoOutDeltaSendType.SEND_DIRECT);
But it didn't solve my problem. Do you have some any suggestion ?
Regards
Hi
I found another forum where i found following code:
SmartSyncRuntime ssRuntime = SmartSyncRuntime.getInstance();
SyncBoOutDeltaFacade boDeltaFacade = ssRuntime.getSyncBoOutDeltaFacade();
SyncBoDescriptorFacade descriptorFacade = ssRuntime.getSyncBoDescriptorFacade();
SyncBoDescriptor boDesA = descriptorFacade.getSyncBoDescriptor(SYNCBO_NAME_INVENTORY);
System.out.println("SYncbo descriptor: "+boDesA);
boDeltaFacade.setSendType(boDesA,SyncBoOutDeltaSendType.SEND_DIRECT);
SmartSyncRuntime.getInstance().getSyncBoDeltaRequestFacade().
getSyncBoDeltaRequest(boDesA).setProcessing(SyncBoDeltaRequestType.DIRECT_REQUEST);
SyncManager.getInstance().synchronizeWithBackend();
It worked fine only once When I want to use this method second time, during synchronization show following exception: com.sap.ip.me.api.persist.core.PersistenceException: key not found: 7048625.
Any suggestion are very appreciated!
MIchal
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.