Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
### BEGIN INIT INFO
# Provides: domino
# Required-Start: $remote_fs $syslog $named $network $time
# Required-Stop: $remote_fs $syslog $named $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: IBM Domino Server
# Description: IBM Domino Server
@shillem
shillem / gist:58e3d31d39bce972c0cf
Created May 8, 2014 13:22
Domino console log about DOTS diagnostics
> tell dots diag org.openntf.domino.plugin
05/07/2014 05:37:37 PM [DOTS] update@../../../../../../../../../var/ibm/domino/data/domino/workspace-dots/applications/eclipse/plugins/org.openntf.domino.plugin_1.0.0.201312231409.jar [22]
05/07/2014 05:37:37 PM [DOTS]
05/07/2014 05:37:37 PM [DOTS]
05/07/2014 05:37:37 PM [DOTS] Direct constraints which are unresolved:
05/07/2014 05:37:37 PM [DOTS]
05/07/2014 05:37:37 PM [DOTS]
05/07/2014 05:37:37 PM [DOTS] Missing required bundle com.ibm.icu_3.8.1.
@shillem
shillem / Demo.java
Last active August 29, 2015 14:01
tell dots tasklist
package com.still.demo;
import lotus.domino.NotesException;
import org.eclipse.core.runtime.IProgressMonitor;
import com.ibm.dots.annotation.Run;
import com.ibm.dots.task.AbstractServerTaskExt;
import com.ibm.dots.task.RunWhen;
@shillem
shillem / 1-readme
Last active August 29, 2015 14:01
openntf and document loop
This code fragment can be run against any user mail database. It searches for any calendar event in a 3 months span.
It's part of an OSGi servlet and it's using OpenNTF Domino API. If I get rid of the Domino API code and use standard Domino classes it works flawlessly. But if I try to use the Domino API I'm having really bad time.
1. If the collection, be it through FTSearch or regular search, is empty (the getCount() equals to 0) both the ViewEntries loop and the DocumentCollection loop fire infinite errors. That's why I added the "getCount" check.
2. If the collection is not empty the FTSearch case seems to be working. The search one fires errors like crazy. It doesn't matter whether I call any method inside the loop, it just throughs a gazillion errors by simply declaring the loop.
What am I doing wrong?