Posts from Jonathan Coustick

Photo of Jonathan Coustick

Find me on:

HK2: The Hundred Kilobyte Kernel

HK2 is a rather old dependency injection (DI) framework and is used as the core of Payara Server. Created in 2007 by Kohsuke Kawaguchi (who is also the creator of the Hudson project, now Jenkins) at Sun Microsystems, it followed JSR 330 closely, which was the JSR that introduced the @Inject, @Named and @Qualifier annotations, the very annotations which are also heavily used in CDI.

Payara for Beginners – Payara ServerをEclipse IDEに追加する

Java EEプロジェクトを作成するにあたって、Eclipseにサーバーを定義してアプリケーションをIDE上でテストできるようにしておくことは重要です。生成物をビルドして手動でPayara Serverにデプロイするよりも、作業がずっとスムーズになります。

Deploying to Payara Server Using the Maven Cargo Plugin

When creating a Java EE application it is important to deploy and test it on a server that is as close to the target production environment as possible. If you use Maven in your project, it is possible to do so using the Cargo plugin, which allows you to deploy an application to an instance of Payara Server either locally or remotely. A complete example is available at https://github.com/payara/Payara-Examples/blob/master/ecosystem/payara-maven/pom.xml.

Using MySQL with Payara Server

MySQL is an open-source relational database you may wish to use with Payara Server, that excels at fast reads and is commonly used as storage for a CMS. This blog will show you how to set up MySQL on Ubuntu and connect to it from Payara Server.