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

Recursive Beer Ballad

Even though I’ve been into Java since 2007, I had never found out how recursion can be powerful when you have to print several lines of code… So now I’ve just made a funny little programs with a recursive method. Separating the cases by a switch, this funny Beer Ballad plays even better! Check it […]