ONJava.com -- The Independent Source for Enterprise Java
O'Reilly Network.oreilly.comSafari Bookshelf.Conferences. Sign In/My Account | View Cart   
Articles Weblogs Books Learning Lab eDocuments  
Traveling to
a tech show?

Las Vegas Hotels
Discount Hotels
Birmingham Hotels
Hotels New York City
Puerto Rico Hotels
Mississauga Hotels
Las Vegas Hotels & Packages
Hotels in Mexico




ONJava.com
supported by:

Refinance Options
   Online
Life Insurance Online



  

XML Messaging Using JBoss
Communication and coordination with open source J2EE

  

Using Timers in J2EE Applications
Scheduling enterprise tasks

  

The New Bloglines Web Services
A look at the new Bloglines Web Services and their effect on the RSS/Atom landscape.

  

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]

O'Reilly Learning LabO'Reilly Learning Lab: $200 Instant Rebate -- Learning development languages and programming techniques has never been easier. Using your web browser and Useractive's Learning Sandbox technology, the Learning Lab gives you hands-on, online training in a Unix environment. This month, receive a $200 instant rebate (and a Certificate from the University of Illinois upon course completion) when you enroll in any Certificate Series.

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]

Hardcore Java: Practical Reflection -- Reflection is one of the least understood aspects of Java, but also one of the most powerful. It allows you to build tools rather than panels, which adds complexity to your code but enables you to create systems that are much faster and cheaper to maintain. Learn all about it in this chapter from Hardcore Java. If you like this chapter, read the whole book (and up to nine others) on Safari with a free trial subscription.

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
Java Programming on the Mac: A Rendezvous with Java  With Apple's release of the Java source code for Rendezvous, developers can create Rendezvous-enabled applications for other platforms, as well as Mac. Michael Brewer shows you how.   [MacDevCenter.com]

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
Features: Web Services Integration Patterns, Part 2  The second part of our coverage of design patterns for web services arising from real-life implementation scenarios.   [webservices.xml.com]





From Writing Programs to Creating Compilers
From Writing Programs to Creating Compilers


Visit the BEA Learning Channel
Java Cookbook: Recipe of the Day

Your data needs to be sorted, but you don't want to stop and sort it periodically.

Do it now.

Weblogs: Links & Commentary

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]
More Java-related web logs.

Today's News
October 14, 2004

Developing Auto-ID Solutions using Sun Java System RFID Software This article helps the developer to understand the architecture, design and implementation of the Sun Java System RFID software. [Source: Java Technology Highlights]

Java Live Chat: Oct. 26th at 11:00 A.M. PDT/6:00 P.M. UTC: UTC: Project Looking Glass Guests: Hideya Kawahara, Paul Byrne, and Deron Johnson [Source: Java Technology Highlights]

Sun Lights up Java Desktop on x86 The company engineers Release 2 for AMD and Intel boxes running Solaris. [Source: internetnews.com: Top News]

Java 1.5 vs C# SexyFingers writes "Sun released Java 1.5. The non-API stuff that they've added made it finally "catch-up" with C# - like we were talking about before, since both language is built to support OOP from the ground-up, their constructs become almost identical as additional OOP "features" are supported overtime - so if you're doing C# and you're foundations in OOP is rock-solid, there really isn't any difference whether you're coding C# or Java." [Source: Slashdot Org latest news headlines]

Java Live Chat Oct. 12th at 11:00 A.M. PDT/6:00 P.M. UTC New Language Features in J2SE 5.0 Guests: Scott Seligman, Joe Darcy, and Peter von der Ahé [Source: Java Technology Highlights]


Events

Atlanta Java Software Symposium
Atlanta, GA Oct. 15, 2004

JavaPolis 2004
Antwerp, Belgium Dec. 13, 2004

More Events

Sponsored by:




Contact Us | Advertise with Us | Privacy Policy | Press Center | Jobs

Copyright © 2000-2004 O’Reilly Media, Inc. All Rights Reserved.
All trademarks and registered trademarks appearing on the O'Reilly Network are the property of their respective owners.

For problems or assistance with this site, email