문제

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

도움이 되었습니까?

해결책

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!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top