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
Hotel Discounts
Chicago Hotels
California Hotels
Canada Hotels
New York City Hotels




ONJava.com
supported by:

Refinance Options
   Online
Life Insurance Online



  

Advanced SiteMesh
Providing a consistent appearance for web applications

  

Developing Your First EJBs, Part 2
Everything you need to know to develop session beans

  

Unit Test Your Struts Application
Bring order and confidence to web-app development

  

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]

O'Reilly Learning LabO'Reilly Learning Lab -- Learning development languages and programming techniques has never been easier. Using your web browser and Useractive's Learning Sandbox technology, you can get hands-on, online training in a Unix environment. You'll get all the tools, course materials (including a free O'Reilly book), and coaching you need to ensure a productive learning experience, and if you complete all the courses in a series, you'll get a Certificate for Professional Development from the University of Illinois. Certifications include Linux/Unix System Administration, Web Programming, .NET Programming, and Client-Side Scripting.

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]

Keeping Up with the Java Joneses  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 Edition.   [ONJava.com]

XML-Java Data Binding Using XMLBeans  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.   [ONJava.com]

Cooking with Eclipse, Part 2  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.   [ONJava.com]

Cooking with Eclipse  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.   [ONJava.com]

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

An Introduction to Aspect-Oriented Programming with the Spring Framework, Part 1  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.   [ONJava.com]

Better, Faster, Lighter Programming in .NET and Java  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.   [ONJava.com]

Designing J2EE Applications for Real-Life Clustered Environments  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.   [ONJava.com]

A Generic MVC Model in Java  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.   [ONJava.com]





The JModalWindow Project
Modal windows enhancements in Java


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

You want fancier drawing abilities.

Do it now.

Weblogs: Links & Commentary

Does a tool need to be cool by Daniel H. Steinberg [java.net weblogs]

MyJXTA 2.3.1a by James Todd [java.net weblogs]

Connected Cooking by James Todd [java.net weblogs]

Logging is your friend. Trust the logger by Scott Ellsworth [java.net weblogs]
More Java-related web logs.

Today's News
September 26, 2004

How do I migrate automated builds to the J2ME Wireless Toolkit 2.1 environment? Learn a straightforward method using Ant and the J2ME Wireless Toolkit to migrate your build environment to the J2ME Wireless Toolkit 2.1 environment. [Source: Java Wireless Technology Highlights]

Getting Started With the Mobile 3D Graphics API for J2ME This tutorial introduces the Mobile 3D Graphics API for J2ME, JSR 184. The API is an optional package to be used with MIDP. The article presents an overview, potential application areas, the differences between JSR 184 and two related APIs, the classes in the new optional package, the programming model, the reference implementation, and some programming examples. [Source: Java Wireless Technology Highlights]

Is Sun Turning against Linux and Red Hat? An Elephant writes "Groklaw is reporting, based on a ZDNet UK story, that Sun's strategy for survival in the near future is based on trying to equate Linux with Red Hat, and then attack Red Hat as too small to support enterprises. This seems strange -- Sun is selling a Linux distro itself (the Java Desktop System). As I write this, there's no mention of this on Sun's website -- neither confirmation nor denial. What's going on?" [Source: Slashdot Org latest news headlines]

Spam Opt-out Link Triggers Malicious Code Attack Maestro4k writes "The Register is reporting on a new spam E-mail circulating out there. In it, clicking on the 'Click here to remove' link launches a site, that when the user scrolls the page, triggers a drag-drop javascript exploit. Scarily the E-mail actually complies with the CAN-SPAM act as it only requires spammers to put an opt-out link in their mailings. As The Reg says "It comes as little surprise that this feature is been taken advantage of in a social engineering exploit; but it does illustrate the security problems of the opt-out approach that were always apparent to security experts - and ignored by legislators." The link in questions points to www. xcelent.biz (As in The Reg story, space intentionally included) so even if you can't block the mail yet it should be easy to block access to the site with the exploit. I suspect this is just the beginning and most spam will include "features" such as this in the near future." [Source: Slashdot Org latest news headlines]

JAX-RPC Tech Tip In this tech tip we explore how to use JAX-RPC to successfully expose a Java object as a web service. [Source: Java Technology Highlights]


Events

Great Lakes Software Symposium
Elk Grove, IL Oct. 1, 2004

Pacific Northwest Software Symposium
Redmond, WA Oct. 8, 2004

Atlanta Java Software Symposium
Atlanta, GA Oct. 15, 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