logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Christian Zalto
    • Posted on Thu 19 Aug 2010 08:53 AM

    So you just need the COM classes installed - but not

    necessarily on the server. As I mentioned I use a

    different Windows server and a Notes client.

    You can still access remote Domino servers - this is

    supported by the COM classes. It's not the DCOM

    way, but this might work for you, too.

    To make it clearer: in my scenario the script is

    scheduled on an interface server with the Notes

    client installed. I use COM to talk to the Domino

    server, refresh a local replica (which makes it a lot

    faster, but is not necessary), call an agent (that

    works on the local replica) and replicate back.

    Set Session = CreateObject("Lotus.NotesSession")

    Session.Initialize("mytopsecretpassword")

    Set dbMyDB = session.Getdatabase("","localreplica.nsf")

    If dbMyDB.IsOpen Then

    dbMyDB.Replicate("MyServer")

    Set agtMyAgent = dbMyDB.GetAgent("MyAgentName")

    If Not agtMyAgent Is Nothing Then

    agtMyAgent.Run

    End If

    dbMyDB.Replicate("MyServer")

    End If

    Set Session = Nothing

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: