Java Archive

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, 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.

Ajax for Java Developers: Ajax with Direct Web Remoting

In the simplest terms, DWR is an engine that exposes methods of server-side Java objects to JavaScript code. Effectively, with DWR, you can eliminate all of the machinery of the Ajax request-response cycle from your application code. This article shows you how to use Direct Web Remoting (DWR) to expose JavaBeans methods directly to your JavaScript code and automate the heavy-lifting of Ajax.

Sun Offers Java Studio Creator, Java Studio Enterprise for Free

Sun is offering its high-end Java IDEs, Sun Java Studio Creator and Java Studio Enterprise, at no cost. Java Studio Enterprise 8 is the commercial IDE, which is based on open-source Netbeans 4.1. Java Studio Enterprise is capable to generate UML diagrams from your source code and vice versa. It has also a built-in collaboration tool that allows better team-work. Java Studio Creator is the Sun's Visual Basic Studio. It allows you to develop J2EE-App using Java Server Faces as front end.

Java: Cocoa Subclasses, Delegates; A Taste of the I/O Package

Coming from his background in Java development, the concept of using delegates and categories, as opposed to subclassing, was a bit foreign to Marcus Zarra. In Java subclassing, nearly everything was quite common. So common in fact, that Sun provided generic subclasses in quite a few cases. Objective-C and Cocoa, however, have a different approach. Marcus walks you through the different approaches used in Objective-C programming. Also: the Java platform includes a number of packages that are concerned with the movement of data into and out of programs. These packages differ in the kinds of abstractions they provide for dealing with I/O (input/output). This chapter covers primarily the stream-based model of the package.

Best Practices for Embedded Applications with eSWT

"Because of the limits of embedded devices (for example, memory and screen size), there are some differences between the SWT widgets and eSWT widgets that greatly influence how you use them. This article shows you how the embedded Standard Widget Toolkit differs from the usual SWT Toolkit and provides best tips and practices for using it as you develop your own eSWT application based on the Model-View-Controller framework."