|
|
Bridging the Gap: J2SE 5.0 Annotations 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. [ONJava.com] Using the ASM Toolkit for Bytecode Manipulation 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. [O'Reilly Network] What's So Java About Sun's Linux Desktop? 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. [ONJava.com] Groovy, Java's New Scripting Language When experienced 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 Edition. [ONJava.com] Monitoring Local and Remote Applications Using JMX 1.2 and JConsole 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. [ONJava.com]
Reporting Application Errors by Email 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.logging. [ONJava.com] Advanced SiteMesh 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. [ONJava.com] Developing Your First EJBs, Part 2 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. [ONJava.com] Unit Test Your Struts Application 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. [ONJava.com] XML Document Validation with an XML Schema 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. [ONJava.com] Developing Your First Enterprise Beans, Part 1 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. [ONJava.com] Understanding the Interplay Between Utility Classes and Static Initialization 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. [ONJava.com] JDemo: Interactive Testing Refactored 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. [ONJava.com]
IRC Text to Speech with Java Paul Mutton creates a multi-platform IRC bot that uses the FreeTTS Java speech synthesizer library to convert IRC messages into audible speech. Why would you want to use an IRC text-to-speech system? By reading out messages as they arrive, you can keep working, diverting your attention to IRC only when necessary. Paul is the author of IRC Hacks. [ONJava.com] Monitoring Session Replication in J2EE Clusters 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. [ONJava.com] Parsing and Processing Large XML Documents with Digester Rules 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. [ONJava.com] Building Highly Scalable Servers with Java NIO 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. [ONJava.com] Java Programming on the Mac Aspect-Oriented Annotations Aspect-Oriented Programming (AOP) and attributes are two leading-edge programming concepts, each with typical applications. By combining them, using attributes to indicate where AOP code should execute, you can effectively declare new Java syntax. Bill Burke introduces this new technique. [ONJava.com] Using the ESB Service Container 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. [ONJava.com] Java Patterns and Network Management 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. [ONJava.com] Handling Events in JavaServer Faces, Part 2 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. [ONJava.com] Develop Your Own Plugins for Eclipse, Part 1 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. [ONJava.com] An Introduction to IKVM 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. [ONJava.com] Extend JavaSound to play MP3, Ogg Vorbis, and more 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. [ONJava.com] Creating Custom Desktop Components 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. [ONJava.com] Handling Events in JavaServer Faces, Part 1 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. [ONJava.com] Creating Varargs in Java 1.5 Tiger This excerpt from Java 1.5 Tiger: A Developer's Notebook, by bestselling Java authors Brett McLaughlin and David Flanagan, shows you how to create and iterate over Java 1.5 varargs (variable-length argument lists). Learning to use varargs will have you writing better, cleaner, more flexible code in no time. [ONJava.com] Maven: Trove of Tips 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. [ONJava.com] Features |
|
|
|
Time, wisdom and AOP by Bruce Tate [java.net weblogs] Time to deprecate javac? by Daniel H. Steinberg [java.net weblogs] Proposal to fix the Cloneable Problem by Andreas Schaefer [java.net weblogs] MyJXTA 2.3.1a by James Todd [java.net weblogs]
Atlanta Java Software Symposium Atlanta, GA Oct. 15, 2004 JavaPolis 2004 Antwerp, Belgium Dec. 13, 2004 |
|
Sponsored by: |
||||||||||||||||||
|
Contact Us | Advertise with Us | Privacy Policy | Press Center | Jobs Copyright © 2000-2004 OReilly Media, Inc. All Rights Reserved. |