Skip to main content

Blog Archive for crazybob during February 2004

Simon Brunning solicited advice on Data Access Object (DAO) design. I have a few tricks up my sleeve that don't demand a great deal of effort (no need to mock up InitialContext for example) but that do result in performant and maintainable tests. Database Commands I implement JDBC logic using the command pattern:   interface DatabaseCommand {    void execute(java.sql....
In the months since Bitter EJB came out, the reviews alone have made the hard work and social sacrifice feel worthwhile. If you'll pardon the shameless plug, I couldn't be pleased more by the warm reception: "Well written... not just a catalog of antipatterns... will really give the reader more insight into EJB." ACM Computing Reviews, February 2004 "...the authors, all seasoned Java developers,...
When we started our project six months ago, we didn't consider AOP at first. After digging deeper into the design, we recognized the unwelcome presence of crosscutting concerns and couldn't deny the urge to reduce dependencies and avoid rote, error-prone code. With an ideal AOP framework in mind, I assessed the landscape. I thought AspectJ and AspectWerkz were impressively powerful but not well...
If you've ever diagnosed a bug in a web application, you've undoubtedly experienced annoyance digging through a list of fifteen exception stack traces trying to identify the one you're interested in (if it's even present), or a sinking feeling when you tailed the web server log only to find:   java.lang.NullPointerException I sure have. The output to the browser client helps even less,...