SNoUG 2017: Hochperformante REST Schnittstellen für Domino

Dieses Jahr spreche ich zum ersten Mal auf der SNoUG am 22. März diesen Jahres.

Wie der Name des Vortrages vermuten lässt, geht es um die Entwicklung hochperformanter REST Schnittstellen auf dem Domino Server, und der gesammelten Erfahrungen der letzten Jahre.

Es ehrt mich, auf diese kleine, aber feine Konferenz eingeladen worden zu sein, und ich freue mich auf weitere interessante Vorträge hochkarätiger Sprecher.

Zur Registrierung geht es hier entlang.

Veröffentlicht unter Allgemein, REST | Verschlagwortet mit , | Schreib einen Kommentar

DomiNodeJS: Node.js on Domino

A while ago I started a new project which allows a seamless integration of Node.js into the Domino server.

The project is hosted on GitHub: https://github.com/hasselbach/dominodejs

The Node.js server is running as a DOTS task, and under the hood the J2V8 project is used for the V8 integration.

Currently, the project is a pre alpha, and it it is more for fun than for profit. There are a lot of open questions about the architecture, but it shows what cool things can be done with Domino.

Veröffentlicht unter Allgemein | 4 Kommentare

Aus aktuellem Anlass: Quo vadis, Domino?

Schon mal darüber nachgedacht, was nach 2021 kommt? Migrationen dauern lange, sind niemals vollständig, und irgend ein wichtiges Detail wird übersehen. Und in der Zwischenzeit?

Gerne biete ich meine Unterstützung an: Bei der Suche nach Alternativen für IBM Notes / Domino, bei Strategien für den Übergang, oder bei der Kopplung an neue Systeme.

Einfach mal Kontakt aufnehmen. Gern auch per Mail: contact <at> hasselba.ch

Veröffentlicht unter Allgemein | Schreib einen Kommentar

Java NAPI: Enable / Disable Recycling of C Handles

Initialize Java NAPI

com.ibm.domino.napi.c.C.initLibrary( "" );

Disable Recycling

com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, true );

Enable Recycling

com.ibm.domino.napi.c.BackendBridge.setNoRecycle( session, session, false );

To use these methods in an agent, you have to import some Jars first.

Veröffentlicht unter Java | Verschlagwortet mit | Schreib einen Kommentar

XPages & Domino JNA

Karsten Lehmann has published a very promising project named „Domino JNA„, which allows access to the underlying IBM Domino/Notes C API from Java.

If you want to use the project in a XPages, you have to add some Java permissions to the java.pol file on your server:

grant {
    permission java.util.PropertyPermission "jnidispatch.path", "write";
    permission java.util.PropertyPermission "jna.loaded", "write";
}

Additionally, you have to import the following JARS from „domino-jna\target\lib“ (after a successfull Maven build) to a directory on the server (jvm/lib/ext) or import it into an NSF:

  • commons-collections4-4.0.jar
  • jna-4.2.2.jar
  • joda-time-2.9.2.jar
Veröffentlicht unter Java, Security, Server, XPages | 1 Kommentar

Vaadin In XPages: A UIComponent for embedding Vaadin applications

I have created an UIComponent to embed Vaadin applications into XPages. It allows to run both technologies on the same site by adding it to your XPage:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view
    xmlns:xp="http://www.ibm.com/xsp/core"
    xmlns:vaadin="http://vaadin.com/xsp/control"
    createForm="false">
    

    <!-- XPages Application -->
    <xp:form>
        <xp:div id="refreshMe">
            <h1>XPage</h1>
            <xp:label
                value="#{javascript:java.lang.System.nanoTime()}"
                id="label1">
            </xp:label>
        </xp:div>
        <xp:button
            value="refresh"
            id="button1">
            <xp:eventHandler
                event="onclick"
                submit="true"
                refreshMode="partial"
                refreshId="refreshMe">
            </xp:eventHandler>
        </xp:button>
    </xp:form>
    
    <!--  VAADIN Application -->
    <vaadin:Vaadin
        id="Vaadin1"
        url = "/vaadin/"
        divId="addressbook"
        version="7.3.8"
        forceResize="true" />
        
</xp:view>

This little example shows the XPage above including the the Adressbook application:

2016-05-03 12_31_17-VaadinInXPages

The Vaadin application is reachable at „http://localhost/vaadin/“ (hosted by Domino), that’s why the property url is set to „/vaadin/„. The property divId contains the name of the application which is used as id in the DOM tree.

It is required that the VaadinComponent is not inside a xp:form element. If it detects a surrounding form, a runtime exception is thrown. That’s why you have to set createForm to false and add your own xp:form to your application, as shown in the example.

2016-05-03 12_50_11-Runtime Error

If the parameter forceResize is set to true, a CSS style sheet is added to the XPage which resizes the height of html and the body node to 100%. Otherwise the Vaadin application will not be displayed correctly.

2016-05-03 12_54_35-view-source_localhost_VaadinInXPages.nsf_index.xsp

Resource Aggregation must be disabled, otherwise it won’t work.

The sources can be found at https://github.com/hasselbach/VaadinInXPages

Veröffentlicht unter Vaadin, XPages | Verschlagwortet mit , | 2 Kommentare

EntwicklerCamp 2016: XPages erweitern und ausbauen

Die PDF Version meiner Entwickler Camp 2016 Session „XPages erweitern und ausbauen“ gibt es hier: ec2016-Votrag-XPagesErweiternUndAusbauen.pdf

Die verwendeten Sources finden sich in diesem Repository auf GitHub: ec2016-xpages-erweitern

Bei Fragen/Problemen einfach eine kurze Info an mich.

Veröffentlicht unter EC 2016, XPages | Verschlagwortet mit , | Schreib einen Kommentar

EntwicklerCamp 2016: Ein Leben ohne Notes Client

Hier gibt es die PowerPoint Präsentation von meiner Entwickler Camp 2016 Session „Ein Leben ohne Notes Client“: ec2016-Votrag-LebenOhneNotesClient.pptx

Die kompletten Sources finden sich in diesem Repository auf GitHub: ec2016-ein-leben-ohne-notesclient

Bei Fragen/Problemen einfach eine kurze Info an mich.

UPDATE: Hier die PDF Version.

Veröffentlicht unter EC 2016, Java, JavaFX | Verschlagwortet mit , , | Schreib einen Kommentar

Kurze Werbeunterbrechung

Probleme bei der XPages-Entwicklung? Schulung gefällig?
Fehlt die eine oder andere Komponente? Oder wird ein neuer Renderer benötigt, der zur Abwechslung mal den HTML Code generiert, den man gerne hätte?

Ich biete gerne meine Unterstützung an.
Einfach mal Kontakt aufnehmen. Gern auch per Mail: contact <at> hasselba.ch

Veröffentlicht unter Allgemein | Schreib einen Kommentar

How To Crash a Domino Server in 500ms

How To Crash a Domino Server in 500ms

1. Create a Java agent and do something in your finally block (or in a ThreadDeath exception handling) which runs longer than 500ms

import lotus.domino.AgentBase;

public class JavaAgent extends AgentBase {

    public void NotesMain() {
        try {
            int i = 0;
            while (i < 1000) {
                i++;
                System.out.println("Round " + i);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {}
            }
        } finally {
            try {
                Thread.sleep(1000);
            } catch (Exception e) {}
        }
    }
}

2. Run the agent on the server

2016-02-20 11_31_17-SH Domain - Dev01_Hasselba_CH - IBM Domino Administrator1

3. Quit the Agent Manager

2016-02-20 11_31_17-SH Domain - Dev01_Hasselba_CH - IBM Domino Administrator2

4. And then restart it

2016-02-20 11_31_17-SH Domain - Dev01_Hasselba_CH - IBM Domino Administrator3

5. Enjoy the silence

2016-02-20 11_31_17-SH Domain - Dev01_Hasselba_CH - IBM Domino Administrator4

Fun fact: This works well in a IBM Notes Client too! Just start the agent and cancel it a few times (<CTRL> + <BREAK>).

Veröffentlicht unter Agenten, Bug, Java, Server | Verschlagwortet mit , , , | 2 Kommentare