public class HelloWorld extends JAddinThread {
// This is the main entry point. When this method returns, the add-in terminates.
public void addinStart() {
logMessage("Started with parameters " + getAddinParameters());
logMessage("Running on " + dbGetSession().getNotesVersion());
logMessage("Unable to get Domino version: " + e.getMessage());
logMessage("User code is executing ...");
waitMilliSeconds(15000L);
// This callback method is called by the JAddin framework when the
// command 'Quit' or 'Exit' is entered or at Domino server shutdown. Here
// you may signal the addinStart() method to terminate and to perform any cleanup.
public void addinStop() {
logMessage("Termination in progress");
// This callback method is called by the JAddin framework for any
// console command entered. It should be executed as quickly as possible
// to avoid any main Domino message queue delays.
public void addinCommand(String command) {
logMessage("You have entered the command " + command);