Question

I need a piece of code to execute code triggered by the replicator everytime the

replicator runs

Is there a way to do this?

Thx

Pitt

Was it helpful?

Solution

The Notes client since 8.0 is based on Eclipse. You could schedule tasks with the Eclipse Jobs API for repeating tasks.

To run tasks with the replicator, there is an Extension Point you can use:

<extension point="com.ibm.notes.client.notesSync">
    <unit class="com.notessensei.demo.RunOnReplication"
     id="com.notessensei.demo.runonreplication"
     image="icons/replicate.gif"
     label="NotesSensei's Demo Replication">
    </unit>
</extension>

It creates a new entry in the replicator, which you can drag up and down in the list. It starts with the replication either on schedule or manual and runs concurrently with the replications. I haven't found a way yet to have something run after a replication (to process the new arrivals).

Sample code can be found in a blog post I wrote a while ago.

Hope that helps!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top