Install Apache web server on Windows

To install apache on Windows, you can download the binary from: Then you need to edit the httpd.conf file to change the path to the server root (SRVROOT). It should be something like: Define SRVROOT “C:\Users\laura\httpd-2.4.12-x86-r2\Apache24” If you are running Skype (that listens on the port 80), there will be a conflict In this […]

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. […]

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 […]

JAXB part 7: increase performance with singleton JaxbContext instance

Currently I am developing an application to rename some jboss configuration content. Using JAXB, I had made marshalling and unmarshalling methods, creating a new JAXBcontext instance each time the single methods were invoked (for each xml file!). The application was incredibly slow. Taking up to 45 minutes to complete the tasks. Then I have discovered […]