Wildfly Standalone clustering

To set up a cluster of standalone servers you have two possibilites: nodes running on different machine (horizontal scaling) or running on the same machine (vertical scaling). To make a wildfly standalone cluster with 2 nodes on the same machine you can follow the steps below: 1) copy the standalone folder and rename it to […]

MySQL CHECK constraint alternative: triggers!

Yesterday I discovered the powerful hibernate check constraint (@org.hibernate.annotations.Check) , which can be directly added in your entity class like this: Unfortunately, as you can read in the official MySQL docs, “the CHECK clause is parsed but ignored by all storage engines”. Yesterday I found out that MySql 5.X doesn´t support the SQL CHECK constraint. […]

Jboss / Wildfly maven plugin to deploy on localhost/remote server

This is a very simple solution, that unfortunately took me a couple of hours because I couldn´t find it anywhere… Place your server properties in the maven settings.xml file (found in the .m2 folder) like this: In the pom.xml file place the plugins under build>plugins> and set the server configuration parameters as maven properties (without […]

Arquillian testing with Maven in Eclipse: Deployment scenario issue (Glassfish embedded example)

To run a test with Arquillian using Maven you might consider embedded, local or remote containers. You can set them all in your pom.xml file and specify deployment profiles like the following: The container must be configured in the arquillian.xml file. A simple one might look like this: Setting the container in the pom.xml and […]

Glassfish 4.0 : “Hello world” application with Maven 3

The following steps will allow you to develop and deploy a first demo web-app with Glassfish Server 4. 1) To install Glassfish 4.0 follow the steps at http://glassfish.java.net/download.html For example, you can get the zip version and extract into: C:\glassfish4. 2) If you´re working on a Windows Desktop Rename glassfish4/glassfish/bin asadmin to *.s to prevent […]