To break the dependency of a client upon a server when you can't modify the server, the Adapter pattern is an alternate approach to last month's Abstract Server pattern. The class and object versions of this pattern are offered and the article ends with an anonymous inner class implementation.
August 17, 2004
Using Groovy to parse an XML document and allowing Java to make OO calls to get node values rather than bogging down in DOM calls.
August 12, 2004
Introduction to J2ME techniques in "Scratch", a simple MIDlet that captures signatures as collections of points.
August 10, 2004
The proposed EJB 3.0 specification defines a new syntax to simplify development, but Rajat Taneja and Ganesh Prasad say it fails to address fundamental flaws in the model. They have an alternative proposal.
August 5, 2004
These two excerpts from "Geronimo: A Developer's Notebook" cover downloading, building, and deploying this open source, BSD-licsensed J2EE server.
August 5, 2004
An introduction to thread synchronization issues, including deadlock and how to avoid it.
August 2, 2004
This excerpted tutorial covers writing a simple Spring web application using the Struts MVC framework for the front end, Spring for the middle-tier glue, and Hibernate for the back end.
July 30, 2004
The JSR-82 is a powerful API that allows Java devices to communicate over the Bluetooth protocol. Bruce Hopkins shows how to develop Java Bluetooth applications.
July 27, 2004
This excerpt from James Elliot's "Hibernate: A Developer's Notebook" shows you how to use simple criteria, compound criteria, apply criteria to associations, and query by example using Hibernate.
July 19, 2004
Creator Gerald de Jong describes Fluidiom, a Java application that uses JOGL to represent crawling wireframe creatures in 3D.
July 20, 2004
We present two chapters from Budi Kurniawan's book, "How Tomcat Works." These excerpts include an explanation of the workings of Lifecycle and Container.
July 16, 2004
This introduction to custom Java Server Faces components shows how to extend JSF with components that, for example, validate web input.
July 16, 2004
An introduction to the AppFuse project, which provides an almost-turnkey web application environment, based on popular open source tools.
July 15, 2004
Summary of JavaOne 2004 panel discussing the potential open sourcing of Java
July 12, 2004
Interview with Hideya Kawahara, lead developer of Project Looking Glass, a 3D, Java-powered desktop environment.
July 6, 2004
JSP custom tags have been adopted by JSP developers as a way of abstracting complex code out of the page and into reusable components. This article introduces TagUnit -- an easy-to-use testing tool that
makes it possible to comprehensively test JSP tags.
July 5, 2004
GUIs are notoriously difficult to expose to testing, but using a "simulator" technique, it's practical to test widgets in isolation.
June 23, 2004
Java Tech columnist Jeff Friesen takes the game logic developed in his last installment and builds out two complete games of Nim: a console version and a GUI version.
June 21, 2004
Bruce Tate's essay on the future of EJB3. He recognizes the creators of EJB for introducing services outside of the scope of our business logic, but he searches for a way to accomplish this in a better, faster, and lighter way. He hopes that the spec leaders will consolidate persistence for J2SE and J2EE under a single, complete standard for the first time.
June 15, 2004
Felipe Leme shows an approach on how to easily develop taglibs that accept both EL and RT expressions as parameters
June 18, 2004
The Abstract Server pattern is one of the simplest of the object-oriented design patterns. We use it when we want to break the dependency of a client upon a server, for the purpose of protecting the client from changes to the server, and to preserve the ability to extend the client to use other servers.
June 11, 2004
Your pictures of Duke and family celebrating java.net's first anniversary.
June 10, 2004
We're coming up to the first anniversary of java.net, and looking for your pictures of Duke and family celebrating this event.
June 4, 2004
Success story profiles the history and achievements of the Open For Business project.
June 1, 2004
RMI has evolved into a low-process, low-deployment-overhead, and lightweight framework for strongly typed remote method invocation.
June 1, 2004
Survey of commercial HTML rendering toolkits for Java.
June 14, 2004
A survey of free HTML rendering toolkits for Java.
May 24, 2004
Jeff Friesen shows how to play a simple game, Nim, and how to write a computer opponent in Java .
May 18, 2004
Jack Herrington further develops code generation tools with support for "safe zones," allowing handwritten and generated code to coexist.
May 31, 2004
Jack Herrington introduces an XSLT-based workflow for automatically generating Java code from XML descriptor files.
May 12, 2004