Archiv der Kategorie: Java

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

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 … Weiterlesen

Veröffentlicht unter Java, Security, Server, XPages | 1 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 … Weiterlesen

Veröffentlicht unter EC 2016, Java, JavaFX | Verschlagwortet mit , , | 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 {    … Weiterlesen

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

Things I never blogged about: XPages & Google’s EventBus

This is another topic I wanted to blog about for a long time: The use of Google’s EventBus in XPages applications. EventBus is a replacement for the Java in-process event distribution. It makes life a lot easier. My first plan … Weiterlesen

Veröffentlicht unter Java, JSF, XPages | Schreib einen Kommentar

Things I never blogged about: The XPagesExecutor Service

The XPages engine has its own executor service to run jobs concurrently in another thread: the XPagesExecutor service. Under the hood the service uses a ThreadPoolExecutor for executing tasks, so it allows to use Runnables or Callables/Futures for asynchronous computation. … Weiterlesen

Veröffentlicht unter Java, XPages | 2 Kommentare

[Discontinued] Testing XPages(3): Testing the Business Logic

I will not develop my planned XPages Testing Framework further because for me it has no business case anymore. While there never was enough time to make it to a „real project“ for the daily development (full JUnit integration, deployed … Weiterlesen

Veröffentlicht unter Java, XPages | Schreib einen Kommentar

Debug Retrofit REST applications

Today I had some problems with designing a Retrofit REST application, so I needed a way to debug the request and the response from the server. After poking around, I found the HttpLoggingInterceptor from OkHttp.  It provides all the functionality … Weiterlesen

Veröffentlicht unter Java, REST, Web | Schreib einen Kommentar

Testing XPages (2): BrowserMob Proxy

When testing XPages or other web applications, you may want to have more control about the requests and responses during the JUnit testing. For example, if you want to test if a specific HTTP header exists in the response, or … Weiterlesen

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