Java Archive

Validate Localized Data with Regular Expressions

"Data validation is a common chore in programming any user interface. The Java language's regular-expression support can make data validation easier. You can define a regular expression that describes valid data and then let the Java runtime see if it matches. But certain types of data have different formats in different locales. The ResourceBundle class lets you work with locale-specific data in an elegant way. This article shows how to combine the two techniques to solve a common data-entry problem."

3D Graphics for Java Mobile Devices

The Mobile 3D Graphics API retained mode lets you work with a scene graph representation of your 3D world. This article, the second of a two-part series, describes just that -- an easy way to manage your 3D objects. Immediate mode renders 3D objects directly on the screen. Retained mode, on the other hand, lets you build a scene graph that you can manipulate and render at a later time.

Eclipse Web Tools Platform 1.0 Released

"The Eclipse Foundation will make the Eclipse Web Tools Platform 1.0 release generally available the week of Dec 19th, 2005. Eclipse WTP 1.0 is an extensible, standards-based tool platform for developing J2EE and Web applications. This full version release solidifies the platform API for 3rd party extension, and accompanying major documentation improvements make WTP ready for the next-level of vendor adoption."

The Apache Geronimo Push for Clustering

"Clustering allows an application server to support multiple nodes with failover, session data sharing, and load balancing across many network nodes. This article provides details, direct from Apache Geronimo clustering effort team leader, Jeff Genender. Find out who is working on the details, how they work together to get the code written, and the ramifications these efforts are having on the open source community."

Lightweight R/O Mapping

An unwritten consensus in the IT industry is that data shared between object-oriented software and relational databases is best exchanged with object/relational (O/R) mapping frameworks where the entity relationship (ER) model follows the object-oriented model. This article proposes a reversed, lightweight approach supported by a small framework called Amber.

Java Perspective: Cocoa-Java Bridge

What if you could combine Cocoa (that easy-to-use extension to C that is the primary language used for development on the OS X platform) and Java (one of the most widely used languages on the Internet) to create an OS X native application that utilizes the power of Java's libraries? Marcus Zarra does just that in this latest article in his series on Cocoa from the Java developer's perspective.

Deploy Web Services with an Apache Geronimo J2EE application

The Apache Geronimo application server supports Web services along with other aspects of the latest Java 2 Platform, Enterprise Edition specification. This article describes how to use Web services facilities provided by the Apache Geronimo application server to build Web services-enabled J2EE applications. It demonstrates how the Geronimo application server relies on robust support for J2EE standards, providing a number of facilities for building both Web services and their clients.

Tired of Hand Coding JDBC? iBatis Can Help

There is an object relational mapper out there that is a hidden gem. Instead of creating a full domain model, its job is to map Java objects directly to SQL statements. This framework is called iBatis, and its goal is to implement 80% of the JDBC boilerplate code you would otherwise have to do yourself. In addition, it provides a simple mapping and API layer that lets developers quickly develop data access code. This article explains how iBatis can help you.

Track Phone Position with GoogleMaps and Java

Most developers (and the general public, for that matter) haven't yet gotten the idea that the next step in wireless applications is going to be all about location. Mologogo uses GoogleMaps with a Java and a GPS-enabled cell phone to show a target phone's position on a GoogleMap, allowing you to track it from your own phone or through the Web. This artcle provides insight into Mologogo and other Web 2.0 contenders and their privacy issues.

Escaping the Java Trap

"For the last couple of years the community has been working to ensure that developers can create applications using Java without having to depend on proprietary software. Today, the Free implementations are already very capable and support a vast amount of functionality that developers expect from a Java-like environment. Important large applications like JOnAS, OpenOffice.org 2, Eclipse 3 and Tomcat 5 are known to work and now included in distributions like Ubuntu and Fedora Core. This document provides a road map of the various projects; how they work together, where they are, where they're going, and how we make sure that they work well and are compatible."

Plugging Java Memory Leaks with Weak References

While programs in the Java language are theoretically immune from memory leaks, there are situations in which objects are not garbage collected even though they are no longer part of the program's logical state. This article explores a common cause of unintentional object retention and shows how to plug the leak with weak references.