Schlagwort-Archive: Domino

The anatomy of a LTPA token

LTPA Token LTPA token are widely used in the IBM world for authentication between different physical machines, also known as WebSSO. There are two three types available, LTPA1, LTPA2 and a Domino format. LTPA1 and LTPA2 are commonly used with … Weiterlesen

Veröffentlicht unter Security, Server | Verschlagwortet mit , , , | 1 Kommentar

Quick-n-Dirty: Hotfix for DateTimeHelper

This weekend I stumbled over a bug of the DateTimeHelper: If the value of the field is empty, no actions and/or action listeners connected with a managed bean will be executed anymore. Here is an example of a small XPage … Weiterlesen

Veröffentlicht unter Java, JSF, XPages | Verschlagwortet mit , , , , , | 1 Kommentar

Re: Domino REST performance analysis

I have created a Quick-n-Dirty performance test for Csaba’s „10K record test“: Loading time 200 ms overall, 60 ms TTFB. Do you want to know how this works? Feel free to come to SNoUG next week or to Rudi’s EntwicklerCamp and … Weiterlesen

Veröffentlicht unter REST | Verschlagwortet mit , , , | 6 Kommentare

Domino & Java 1.8: Thank you, IBM!

For years it was a lot of pain when developing for the Domino platform using Java 1.6 only. But now, Java 1.8 is available, and this allows to use the latest versions for a lot of libraries and development tools. … Weiterlesen

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

Domino & REST: Debug your Plugin

When developing OSGi Plugins, you should have your own development server running on your local machine. Not only because of the faster deployment of changes (a new version of a plugin must always deployed with a HTTP restart), but because … Weiterlesen

Veröffentlicht unter Jackson, Java, JEE, OSGi, REST | Verschlagwortet mit , , , , , , | Schreib einen Kommentar

Domino & REST: More about Jackson

When creating a REST API servlet, Jackson provides a huge list of possibilities to manipulate the JSON data, mostly using annotations. Let’s demonstrate some of them with this little class, which has only two properties: public class Demo { private String foo; … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, JEE, REST | Verschlagwortet mit , , , , | Schreib einen Kommentar

Domino & REST: Accessing Domino’s Environment / Check Authentication

If we want to access Domino’s Environment, it is the ContextInfo class which gives us all we need. Everything you need to do to use the class is described in an earlier blog post. The class gives mainly access to the … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, Java, JEE, REST | Verschlagwortet mit , , , , , , , | 3 Kommentare

Domino & REST: Consuming JSON

Consuming JSON is as easy as pie: Just create a new method to the RestApiServlet,  add a @POST annotation, and declare the object you want to the parameters of the method:     @POST     @Path(„/helloworld/“)     @Consumes(MediaType.APPLICATION_JSON)     public Response postHelloWorld(HelloWorld helloWorld) … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, Java, JEE, REST | Verschlagwortet mit , , , , , | 1 Kommentar

Domino & REST: Listeners for Initialization & Destroying of a Servlet

If you need to know when your Servlet is initialized or destroyed, you can use a ServletContextListener in your application. First, create the class AppServletContextListener and implement the javax.servlet.ServletContextListener interface. This provides two methods for capturing the events: contextInitialized and … Weiterlesen

Veröffentlicht unter Java, JEE, REST, Server | Verschlagwortet mit , , , , , | 2 Kommentare

Jackson: Skip Objects conditionally

I had a simple problem when implementing this brilliant solution in one of my REST applications: As soon I was using @JsonAnyGetter / @JsonAnySetter and the HidableSerializer together, a NPE was thrown during serialization. The Problem occured in Jackson 1.9.13 … Weiterlesen

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