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 October 24, 2005
Dynamic Delegate is my new pet project. Dynamic Delegate is a small library that allows you to create objects that implement the Business Delegate design pattern on the fly. You don’t have to code a Business Delegate. All you need to do, is make your EJBs implement the Business Interface design pattern and use DynamicDelegateFactory [...]
Posted in Java | Tagged ejb
By spiros on October 13, 2005
I read the Core J2EE Design Patterns 2nd edition in July 2005. Below I have written a review for this important book. Core J2EE Design Patterns is one of the most important books on the traditional J2EE application architecture. If you are programming J2EE systems that are heavily based on EJB 2.x then this book [...]
Posted in Java | Tagged book, design patterns, ejb, javaee
By spiros on June 26, 2005
Here you can find an article by Bobby Woolf that describes why caching inside a Service Locator in J2EE 1.3 applications may have unexpected behavior. The article also provides a nice explanation of the EJB resource reference mechanism. Update (19/9/2005): BTW this is why the Adventure Builder (the sample application developed by SUN for J2EE [...]
Posted in Java | Tagged caching, design patterns, ejb