cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Generic Sync

Former Member
0 Kudos

Hi,

we are developping an application for forklifts where many bins need to be scanned. The goods movements are saved in SAP R/3 using generic sync.

The Application is very slow when synchronisation is called at any goods movement (SyncManager.getInstance().synchronizeWithBackend();).

What we need is a way to only create the outbound container at goods movement time and the synchronization should be done automatically (i.e. no user interaction) about once per 10 minutes without interrupting the main application.

There should be a log to check if synchronization was successful.

Any ideas?

Thanks for help,

Matthias

Message was edited by: Matthias Kaempf

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Do you have to use Generic sync. Smart Sync would make this functionality possible much easier.

-wael

Former Member
0 Kudos

Hi Wael,

a switch to Smart Sync is possible. How would you implement the desired functionality with SyncBos, especially the automatic synchronization and the performance issues?

Thanks, Matthias

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Matthias,

If you're using MI2.5, you can make use of the

background sync. Try adding the following entries

into your MobileEngine.config file.

(TimeInterval is in ms)

MobileEngine.Sync.TimedSyncActive=true

MobileEngine.Sync.TimedSyncTimeInterval=30000

You still need to register your SyncEventListener

if you're not using the SmartSync feature.

And take care of concurrent access...

This will however synchronize ALL the applications

GenericSync and SmartSync in the client. Now, if you

want to ONLY synchronize your application, then you

have create an new Thread to prepare your container

and invoke the synchronizeWithBackend method.

Regards

Jo

Former Member
0 Kudos

Jo Gel Santiago, thanks, this lines:

MobileEngine.Sync.TimedSyncActive=true

MobileEngine.Sync.TimedSyncTimeInterval=30000

Are very useful for me...

Thanks