By spiros on October 17, 2008
EclipseLink provides advanced JPA features such as lazy-loading, change tracking and fetch groups using bytecode weaving. To use bytecode weaving you can either dynamically instrument your entity classes at runtime (via a jvm agent) or use a tool to statically process the .class files after compilation. In this post we will present how to use [...]
Posted in Java | Tagged EclipseLink, jpa, maven |
By spiros on July 3, 2007
This is the second, and last part of the Using Dependency Injection in Struts2 for stateless EJBs series of posts. In this post I will present a utility class that can be used to make the creation of Guice bindings for EJB3s easier. Introducing EjbBinder Our goal is to make an easier API, specifically for [...]
Posted in Java | Tagged ejb, guice, struts |
By spiros on July 3, 2007
In this post I will present a way to use dependency injection of stateless session beans in Struts 2 actions using Guice. I will only write about EJB3, because they have simpler client lookup code, but you might be able to change the presented code to cover older versions of EJB. We will use off [...]
Posted in Java | Tagged ejb, guice, struts
By spiros on June 2, 2007
Scott Hanselman has a post about a user who doesn’t get what is cool about Ruby. In the post you can find the below example that compares Java and Ruby in terms of code readability. The Java code: new Date(new Date().getTime() – 20 * 60 * 1000) The Ruby code: 20.minutes.ago The article was interesting [...]
Posted in .Net, Java | Tagged ruby |
By spiros on May 16, 2007
The current stable version (2.2) of the maven-surefire-plugin does not support JUnit 4. So Maven, out of the box, does not work with JUnit 4. Luckily if we want to use JUnit 4 in our Maven based projects we have two choices. The first is to use JUnit4TestAdapter as illustrated in this post. The second [...]
Posted in Java | Tagged junit, maven |