Posts tagged How-to

Easy Jakarta EE Integration Testing with the Payara Platform and Testcontainers

One major issue when developing modern enterprise applications is the "works on my machine" problem: when an application works well on your machine but is not functional in production or even on a colleague's machine. An even more prevalent problem is to maintain the quality of ever-changing applications during development and maintenance. 

This is especially prevalent when Jakarta EE applications are developed and not properly tested in an isolated and cohesive manner. Proper integration testing helps to avoid both the "works on my machine" problem, and ensures developers can change the application effectively without breaking it. However often teams struggle with it, due to a lack of standardized testing solutions and the unpredictability of real-world conditions. 

Here, I present an effective method for Jakarta EE integration testing, using Payara Platform and Testcontainers in my example.

Monitoring JMX Using the Notification Service

Within Payara Server, the JMX system is used to store all the data that the monitoring service captures of the modules within the runtime.

You can use any tool that can connect to the JMX system to collect these data and monitor the environment. Besides this direct access, the notifier service can send this information to various channels so that the data can be integrated with external systems.  

The Notifier service is modular since October 2020 with version 5.2020.5 so that you can include only those notifiers that you are interested in and use within your environment. These notifiers cover a wide range of channels, from typical destinations like email, JMS Queues, over APM tools like DataDog and NewRelic to communication platforms like Teams, Slack, and Discord.

In this blog, we take a look at enabling JMX Monitoring for the JVM Heap Size, monitoring the process Heap Size, and then sending that information to a Discord channel.

カスタム SSL証明書を用いた Payara Serverのセキュア化

Payara Serverの管理タスクで最も多いものの1つは、他のWebサーバーと同様に、HTTPプロトコルやPayara Serverへのリモート・アクセスをセキュアにするための電子証明書のセットアップです。皆様は自己署名証明書または信頼できる認証局の署名入り証明書のいずれかをお持ちでしょうが、どちらの場合も証明書をPayara Serverのドメインに追加してセキュアな通信に用いるのはとても簡単です。

How to Improve Domain Data Grid Performance

One of the cornerstones of any modern Payara Platform architecture is the use of the Domain Data Grid. The Domain Data Grid allows multiple Payara Server or Payara Micro instances to join and form a robust cluster of interchangeable nodes that can share data between each other and grant High Availability and Failover capabilities to any applications deployed in the cluster. 

The Health Check Service In-Depth - Payara Server 5

This is an updated blog of the original which was published in May 2016

Payara Server provides the Health Check Service for automatic self-monitoring in order to detect future problems as soon as possible. When enabled, the Health Check Service periodically checks some low level metrics. Whenever it detects that a threshold is not met, it triggers alert notifications that allow to detect undesired behavior and predict possible failures. All of these automatic checks are very lightweight and run with a negligible impact on performance.

カスタムSSL証明書を用いたPayara Serverのセキュア構成

Payara Serverの管理タスクで最も多いものの1つは、他のWebサーバーと同様に、HTTPプロトコルやPayara Serverへのリモート・アクセスをセキュアにするための電子証明書のセットアップです。自己署名証明書または信頼できる認証機関の署名入り証明書のいずれかをお持ちでしょうが、どちらの場合も証明書をPayara Serverのドメインに追加してセキュアな通信に用いるのはとても簡単です。

 

Payara for Beginners - Payara ServerをNetBeansに追加する

Payara Server上でアプリをテストする時、IDEと連携してアプリをテストできるようにしておくと非常に便利です (そもそも、そのためのIDEですが)。もしNetBeansを使用しているのなら非常に簡単に実現できます。このブログではPayara ServerをNetBeansにセットアップしてWebアプリを実行するための手順をご紹介します。

 

Payara para principiantes: Integrando Payara Server con Oracle 11g XE

La mayoría de las aplicaciones web modernas necesitan alguna manera de almacenar datos en una base de datos. Generalmente, Oracle proporciona la mejor solución de RDBMS en lo que respecta a seguridad, soporte y escalabilidad. Oracle XE es la versión más adecuada para desarrolladores para proyectos pequeños o personales, y además debería ser compatible con la versión completa de la base de datos Oracle. Esta guía te adyudará a configurar tanto Oracle XE y Payara Server.

Payara para principiantes: Añadir Payara Server a NetBeans

Cuando estás probando una aplicación para ejecutarla en Payara Server, continuamente probar la aplicación desde tu IDE es extremadamente util (ese es su proposito, despues de todo). Si estás utilizando NetBeans esto es muy sencillo. Sigue los pasos de este blog para configurar Payara Server en NetBeans para ejecutar tus aplicaciones web.

Fine Tuning Payara Server in Production (Japanese)

Webアプリケーションを開発する際における最大の挑戦の一つは、商用環境へのリリース時にアプリケーションをどのように調整すべきかを理解することです。これはJavaのエンタープライズ・アプリケーションをPayara Serverへデプロイする場合でも例外ではありません。