« Return to the blog entry
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
Set Session = Nothing
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