ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button

ONJava.com Articles

201 to 250 of 810 Prev Next

An Introduction to Aspect-Oriented Programming with the Spring Framework, Part 2
By Russell Miles
Russ Miles continues his introduction to Aspect-Oriented Programming (AOP) in Spring by delving into the around advice, which allows you to not just add to an existing method implementation, but to completely replace it. Oct. 20, 2004

Create and Read J2SE 5.0 Annotations with the ASM Bytecode Toolkit
By Eugene Kuleshov
Continuing his examination of the ASM bytecode-manipulation toolkit, Eugene Kuleshov shows how ASM can be used to access J2SE 5.0 attributes, even from earlier JVM versions that don't support attributes. Oct. 20, 2004

Advanced Synchronization in Java Threads, Part 1
By Scott Oaks
J2SE 5.0 introduces sophisticated new options for coordinating multiple threads. In this excerpt from Java Threads, 3rd Edition, Scott Oaks and Henry Wong look at new scheduling strategies represented by the java.util.concurrent package. Oct. 20, 2004

Connect the Dots
By Chris Adamson
Online version of the ONJava newsletter for 14 October 2004. Oct. 14, 2004

XML Messaging Using JBoss
By Benoit Aumars
Simple communication in an enterprise system is possible through various schemes, but not all of them answer the question of coordination. Benoit Aumars presents a hypothetical case study that shows how generating and sharing information in XML is made easier with Java Messaging Service (JMS) and Java Management Extensions (JMX). Oct. 13, 2004

Using Timers in J2EE Applications
By Debu Panda
J2SE gained support for scheduled tasks in 1.3, and J2EE 1.4 provides an enterprise equivalent, with transactional, scheduled callbacks provided by application containers. Debu Panda introduces J2EE timers by way of an EJB that gets scheduled services. Oct. 13, 2004

Manipulating and Metacoding
By Chris Adamson
Online version of the ONJava newsletter for 7 October 2004. Oct. 7, 2004

Bridging the Gap: J2SE 5.0 Annotations
By Kyle Downey
Annotations, a means of providing your own metadata for your code, are among the major features of J2SE 5.0, but you don't have to move to 5.0 to use them. Kyle Downey introduces annotations and their implementation in several Java 1.4-compatible forms. Oct. 6, 2004

Using the ASM Toolkit for Bytecode Manipulation
By Eugene Kuleshov
ASM is making inroads in the Java bytecode manipulation community--it's used by Groovy, AspectWerkz, BeanShell, and others--because of its light weight and good performance. Eugene Kuleshov shows how to get started with ASM. Oct. 6, 2004

What's So Java About Sun's Linux Desktop?
By Sam Hiser
Sun attracted some sharp criticism when it released a tightly integrated Linux desktop distribution under the name Java Desktop System. But as Sam Hiser, coauthor of Exploring the JDS Linux Desktop shows, JDS has much to recommend it. Oct. 6, 2004

J2SE 5.0 Hits the Streets
By Chris Adamson
Online version of the ONJava Newsletter for 30 September 2004. Sep. 30, 2004

Reporting Application Errors by Email
By Sean C. Sullivan
Even if your application logs an error to a local file, the developer doesn't know there's a problem until a user notices it and sends the log file back. It can be more useful for apps to email their own error messages back. And as Sean C. Sullivan explains, it's not hard to do with either log4j or java.util.loggingSep. 29, 2004

Monitoring Local and Remote Applications Using JMX 1.2 and JConsole
By Russell Miles
The latest release of Java, J2SE 5.0 (codenamed Tiger), formally adds support for the Java Management Extensions (JMX) 1.2. Russ Miles walks you through how to use the JMX support in J2SE 5.0, including the new JConsole application, to monitor and manage your own applications both locally and remotely. Sep. 29, 2004

Groovy, Java's New Scripting Language
By Ian F. Darwin
When some Java developers hear about Groovy, their first reaction is often, "Oh, no, not another scripting language for Java." Ian Darwin had the same reaction, until he took a good look at Groovy. Ian is the author of Java Cookbook, 2nd EditionSep. 29, 2004

Looking Good and Working Right
By Chris Adamson
Online version of the ONJava Newsletter for 23 September 2004. Sep. 23, 2004

Advanced SiteMesh
By Sunil Patil
Developing a web application with a consistent look and feel isn't easy, especially if parts of the site use different underlying technologies. But as Sunil Patil shows, SiteMesh offers a solution, with servlet filters called "decorators" that apply your appearance late in the game. Sep. 22, 2004

Unit Test Your Struts Application
By Lu Jian
Consistent unit testing is an essential part of development, but web applications aren't necessarily well-suited to unit testing--how to you validate the "correctness" of a returned stream of text or HTML? Lu Jian has an answer in the form of StrutsUT, a Cactus-based library for unit testing Struts web apps. Sep. 22, 2004

Developing Your First EJBs, Part 2
By Bill Burke, Richard Monson-Haefel
In part one of this two-part excerpt from Chapter 4 of Enterprise JavaBeans, 4th Edition, the authors walked through what you need to do to develop your first entity bean. This week concludes this series with a look at how to develop a session bean, building on the examples presented in part one. Sep. 22, 2004

Developing Your First Enterprise Beans, Part 1
By Bill Burke, Richard Monson-Haefel
In this first installment of a two-part series of excerpts from Chapter 4 of Enterprise JavaBeans, 4th Edition, you'll learn how to develop your first entity bean. This segment covers how to define the remote interface, how to create a deployment descriptor, how to deploy, and more. Code examples step you through everything you need to do to create and use your first entity bean. Sep. 15, 2004

XML Document Validation with an XML Schema
By Deepak Vohra
In many cases, it's useful not just to get the values from an XML document, but to verify that the document itself is properly formatted. Deepak Vohra takes a look at how to validate XML documents with Xerces2-j and JAXP. Sep. 15, 2004

Understanding the Interplay Between Utility Classes and Static Initialization
By Satya Komatineni
Using static initializers is a common practice for setting up fields that need to be accessed from distantly related classes. However, without a firm understanding of how statics work with relation to subclassing, and a careful establishment of initialization expectations, difficult problems can arise. Satya Komatineni offers a new pattern that can reduce these problems. Sep. 15, 2004

JDemo: Interactive Testing Refactored
By Markus Gebhard
The nature of GUI development doesn't lend itself to test-oriented methodologies very well. But that doesn't mean you shouldn't test your components! Markus Gebhard has an alternative: JDemo, a tool patterned after JUnit, for displaying and verifying GUI components. Sep. 8, 2004

Monitoring Session Replication in J2EE Clusters
By Fermin Castro
Session replication is critical for running enterprise-class application servers, but tracking down problems in J2EE clusters can be difficult. Fermin Castro introduces techniques for monitoring and measuring how well your cluster is replicating sessions. Sep. 8, 2004

Parsing and Processing Large XML Documents with Digester Rules
By Eugene Kuleshov
In-memory XML representations such as DOM can be impractical for large XML files, for which different approaches are needed. As Eugene Kuleshov shows, Jakarta Digester offers a lighter, event-driven alternative.  Sep. 1, 2004

Building Highly Scalable Servers with Java NIO
By Nuno Santos
For massive, high-performance systems, thread-per-client systems may not scale because of the expense in switching thread contexts. Sometimes, as Nuno Santos explains, you have to go lower-level. In this article, he shows how his team used multiplexing features in java.nio and a Swing-like event dispatcher to achieve extremely high performance. Sep. 1, 2004

Java Patterns and Network Management
By Stephen B. Morris
Patterns are often used to solve common problems in software developments, but this approach is also applicable to deploying and managing networks. Stephen B. Morris shows how this approach can help solve problems in this complex field. Aug. 25, 2004

Using the ESB Service Container
By David A. Chappell
O'Reilly's Enterprise Service Bus, by Dave Chappell, shows how to use an event-driven SOA to integrate enterprise apps and web services built on J2EE, .NET, C#/C++, or other legacy platforms, into a single integration network that spans the extended enterprise. In this excerpt from Chapter 6 of his book, Dave discusses the ESB service container--a key architectural concept that provides the implementation of the ESB's service interface. Aug. 25, 2004

An Introduction to IKVM
By Avik Sengupta
Java and .NET are two different worlds, but they can live within one process with IKVM. This "JVM for .NET" allows .NET (or Mono) to leverage Java code, and vice versa. Avik Sengupta provides an introduction to this important new environment. Aug. 18, 2004

Develop Your Own Plugins for Eclipse, Part 1
By Jérôme Molière
Part of the appeal of the Eclipse platform is its extensibility -- in Eclipse, almost everything is a plugin, and it's easy to get plugins from third parties or write your own. Jérôme Molière shows how to get started with deploying Eclipse plugins. Aug. 18, 2004

Handling Events in JavaServer Faces, Part 2
By Hans Bergsten
In the JSF event model, user actions take place in a client separated from the server, causing delays in the delivery of some types of events. In last week's part one of this two-part excerpt from JavaServer Faces, author Hans Bergsten provided examples to show how JSF deals with this, by using a strict request processing lifecycle. Here in part two, Hans implements event handling for parts of the sample application discussed in part one.  Aug. 18, 2004

Creating Custom Desktop Components
By Andrei Cioroianu
Swing includes a vast collection of GUI components, but sometimes you need something that's unique to your application. Andrei Cioroianu returns with an installment on how to code your own Swing widget. Aug. 11, 2004

Extend JavaSound to Play MP3, Ogg Vorbis, and More
By The JavaZOOM Team
JavaSound, part of J2SE since version 1.3, handles a small number of audio formats, but is extensible so that more formats can be supported. The JavaZOOM team has done exactly this, bringing MP3 audio to JavaSound. In this article, they show how it works. Aug. 11, 2004

Handling Events in JavaServer Faces, Part 1
By Hans Bergsten
In this excerpt from Chapter 8 of JavaServer Faces, author Hans Bergsten looks at the event model in JSF and how it relates to the request processing lifecycle. Next week, in part two of this excerpt, Hans implements event handling for parts of the sample application. Aug. 11, 2004

Maven: Trove of Tips
By Andreas Schaefer
Maven not offers not just a build tool but an entire project environment, including documentation and testing features. All of which is a lot to bite off with an existing project. Andreas Schaefer made the switch to Maven and has some real-world lessons he learned from the experience. Aug. 4, 2004

XML-Java Data Binding Using XMLBeans
By Hetal C. Shah
XMLBeans, currently in the Apache incubation process, is a promising framework for providing XML/Java data binding unmarshalling well-formed XML into Java objects, and marshalling Java objects into XML files. Hetel Shah provides an introduction to its features. Jul. 28, 2004

Keeping Up with the Java Joneses
By Ian F. Darwin
Ian Darwin covers a variety of new Java 1.5 features, including J2SE 1.5 threading, the return of printf, and the IDEs NetBeans and Eclipse. Ian wraps up this article with resources to help you keep up with the rest of the Java Joneses. Ian is the author of the recently released Java Cookbook, 2nd EditionJul. 28, 2004

Cooking with Eclipse, Part 2
By Steve Holzner
In this second batch of recipes from O'Reilly's Eclipse Cookbook, find out how to connect Eclipse to a CVS repository and how to use Swing and AWT inside of SWT for Eclipse 3.0. Jul. 28, 2004

Cooking with Eclipse
By Steve Holzner
In these sample recipes from O'Reilly's Eclipse Cookbook learn how to create a custom perspective in Eclipse, and how to speed up the JDT Editor. Jul. 21, 2004

Peeking Inside the Box: Attribute-Oriented Programming with Java 1.5, Part 2
By Don Schwarz
Continuing an investigation into generating update messages without explicitly coding them, Don Schwarz tries combining some new approaches, including thread sampling and bytecode manipulation. Jul. 21, 2004

An Introduction to Aspect-Oriented Programming with the Spring Framework, Part 1
By Russell Miles
The Spring framework, which supports development of the different facets of J2EE, provides an aspect-oriented programming module that gives Spring developers the opportunity to apply aspects to their applications. This article shows you how to work with AOP in Spring. Jul. 14, 2004

Designing J2EE Applications for Real-Life Clustered Environments
By Anil Sharma
What works on a single server can crash and burn in a cluster. In this article, the authors draw from their practical experience to list and discuss some critical considerations when building J2EE applications so that they can be deployed in a clustered environment without requiring any code changes. Jul. 14, 2004

Better, Faster, Lighter Programming in .NET and Java
By Justin Gehtland
In Better, Faster, Lighter Java, authors Bruce Tate and Justin Gehtland lay out five basic principles to combat the "bloat" that has built up over time in modern Java programming. In this article, Justin shows how programmers developing .NET apps can apply the same principles, and along the way, cultivate still more ideas that make programming more simple and fun again. Jul. 14, 2004

A Generic MVC Model in Java
By Arjan Vermeij
The Model View Controller (MVC) pattern often leads to large blocks of essentially similar code in various classes; exactly the kind of detail that can be abstracted away with Java 1.5's generics. Arjan Vermeij shows how this can be accomplished. Jul. 7, 2004

Persistence in Spring
By
Bruce Tate and Justin Gehtland continue where they left off in part one of this two-part series on Spring. This week, the authors of Better, Faster, Lighter Java take you through adding persistence to their Pet Store counter-example, and look at the use of presentation logic in the Spring framework.  Jul. 7, 2004

Java vs .NET Security: Epilogue
By Denis Piliptchouk
Having surveyed the current state of the art of security in Java and .NET, Denis Piloptchouk returns to continue the story. In this epilogue from the new O'Reilly eDocument Java vs .NET Security, he looks at where the two platforms are headed in the near future. Jul. 7, 2004

Inside Class Loaders: Debugging
By Andreas Schaefer
Andreas Schaefer continues his examination of class loading in Java with a look at what can cause problems in advance class-loading scenarios and how to patch class loaders to help debug the problem. Jun. 30, 2004

Peeking Inside the Box: Attribute-Oriented Programming with Java 1.5, Part 1
By Don Schwarz
Don Schwarz wants to add a status indicator to his Swing application, but the straightforward way turns out to be inelegant and limiting. In this first part of "Peeking Inside the Box," he considers code generation and bytecode manipulation as alternatives. Jun. 30, 2004

Demonstrating Spring's Finesse
By
In this excerpt from Better, Faster, Lighter Java, authors Bruce Tate and Justin Gehtland provide an example of Spring (their counter-example to the J2EE Pet Store application) in action, to show why you too will come to appreciate this simple framework as elegant and important.  Jun. 30, 2004

Using a JMS Provider with MDBs via the J2EE Connector Architecture
By Debu Panda
Message-Driven Beans (MDBs) get a big boost in J2EE 1.4 via integration with the J2EE Connector Architecture (JCA), which opens up interesting possibilities to use messaging to and from legacy systems. Debu Panda shows how this can be accomplished. Jun. 23, 2004

Working with Hibernate in Eclipse
By James Elliott
Jim Elliott was curious about whether anyone had written plugins to work with Hibernate in Eclispe, as he'd just finished writing Hibernate: A Developer's Notebook. It turns out there are several such efforts underway. In this article, Jim explores Hibernate Synchronizer--a plugin that automatically updates your Java code when you change your mapping document. Jun. 23, 2004