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  
MySQL Users Conference April 18 - 21, 2005, Santa Clara, CA


  

Five Favorite Features from 5.0
David Flanagan reviews five new API features in Java 5.0

  

Enterprise Streaming
JMS made stream-friendly

  

Simplifying Java with Jakarta Commons Lang
Harshad Oak provides an overview of the Jakarta Commons Lang project

  

Managing Component Dependencies Using ClassLoaders  Use of the Class-Path entry within a JAR file's manifest can help you manage external dependencies--to a point. Once you start using multiple JARs that need incompatible versions of external JARs, problems quickly ensue. As Don Schwarz shows, you can get out of this problem by using your own class loader to manage the dependencies.   [ONJava.com]

Regular Expressions in J2SE  Java applications that perform text searching and manipulation using String and StringTokenizer classes often result in complex code, leading to a maintenance nightmare. Another alternative is regular expressions. Hetal Shah explains how to implement regular expressions using the java.util.regex package, and how it can make your code easier to write and maintain.  [ONJava.com]

O'Reilly Learning LabOpen Source Programming Certificate Special -- Acquire the skills necessary for a complete understanding of programming using open source operating systems, languages, libraries, and databases. This five-course series covers CGI programming with Perl, SQL database programming, PHP programming, object-oriented programming with Java, and basic Linux/Unix system administration. Upon completion of the series, students receive a Certificate from the University of Illinois Office of Continuing Education. Enroll now and save 40%. Offer extended until April 30.

Top 15 Ant Best Practices  Nearly every open source Java project now uses Ant. The widespread use of Ant in these projects has naturally led to an increased need for a set of well-established best practices. Eric M. Burke, coauthor of Java Extreme Programming Cookbook and Ant: The Definitive Guide, offers his 15 best practices for using Ant and for writing well-crafted Ant buildfiles. These tips were inspired by his own mistakes on previous projects, or from horror stories relayed to him from other developers.  [ONJava.com]

Form Your Own Design Pattern Study Group  Like most complex subjects, design patterns are best learned over a period of time, not in a few sittings. Eric Freeman and Elisabeth Freeman, coauthors of Head First Design Patterns, suggest one way to ease the learning curve (and have some fun along the way): form a study group, using their book. If you're ready to get your engineering team together, the Freemans get you started in this article with a plan to follow and chapter-by-chapter questions to help generate discussion.   [ONJava.com]

Quick Start Guide to Enterprise AOP with Aspectwerkz 2.0  Aspect-oriented programming is a great extension to Java, though not yet popular within the enterprise environment. David Teare introduces some production-ready aspects performing logging and profiling, together with a complete application demonstrating the process.  [dev2dev]

Features: Getting Started with XQuery, Part Two  Bob DuCharme, our intrepid XSLT explorer, continues his introduction of XQuery, the new programming language for XML.  [XML.com]

Eclipse Plugins Exposed, Part 2: Simple GUI Elements  Eclipse is largely composed of plugins, but you can't just write any arbitrary code and have Eclipse magically incorporate it. In part two of his series on Eclipse, Emmanuel Proulx introduces Eclipse's "extension points" by showing how to create toolbar buttons, menu items, and dialogs.   [ONJava.com]

WS-Security in the Enterprise, Part 2: The Framework  Denis Pilupchuk continues his series on developing a WS-Security toolkit by developing a general framework to match the needs identified in part one and by starting to map WSSE features to Java objects.   [ONJava.com]

Features: Getting Started with XQuery  Bob DuCharme, our intrepid XSLT explorer, turns his attentions to XQuery, the new programming language for XML.  [XML.com]

Flexible Event Delivery with Executors  Event-handling is critical to any GUI application, and many developers know the hazards of making a method call to unknown or poorly behaved code from the event-dispatch thread. J2SE 5.0's concurrency utilities offer more fine-grained control over how code executes. Andrew Thompson applies that to offer better ways to handle events.   [ONJava.com]

Java Component Development: A Conceptual Framework  In general terms, a component is one or more classes with an external API that satisfy some requirement. But how do you build components that are really practical--that handle configuration changes or third-party integration well? Palash Ghosh has some ideas about the concepts behind components.   [ONJava.com]

Inside WSRP  The WSRP protocol allows portals to consume remote portlets running on other portal servers. Learn how the WSRP protocol operates, and how to write portable portlets that can run locally or remotely.  [dev2dev]

Building Modular Applications with Seppia  Isn't object-oriented programming supposed to be about code reuse? The Seppia framework encourages reuse by allowing you to combine functionality collected in multiple .jar files, stitching the behavior together with JavaScript. Lorenzo Puccetti has an introduction to this interesting framework.   [ONJava.com]

SwarmStream: A Next-Generation HTTP Stack for Java  Ry4an Brase and Chad Tippin provide an overview of SwarmStream Public Edition's feature set. SwarmStream, a free tool for improving the performance of Java's built-in HTTP networking routines, is among the cool new technologies you'll learn about at this week's Emerging Technology Conference. If you couldn't be there in person, check out our conference coverage page for all the goings-on.   [ONJava.com]

Reducing Upgrade Risk with Aspect Oriented Programming  Upgrading code in the field is usually frowned upon, if not prohibited outright, because of the risk and expense of pushing code changes through a release cycle. But could you just insert the tiny bit of code you need with AOP? Stephen B. Morris looks at how careful design and separation of responsibilities can make this less risky.   [ONJava.com]

A Look at Commons Chain, Part 2  In part one of this two-part series, Bill Siggelkow showed Java programmers how certain design patterns help Commons Chain to define and execute sequential sets of steps. In part two, Bill shows how Struts uses Chain to add custom behavior to request processing. Bill is the author of O'Reilly's Jakarta Struts Cookbook.   [ONJava.com]

Welcome to a New World: JBoss World 2005  JBoss World, held in Atlanta on March 1-2, kicked off with announcements of new directions for the company and a roundtable of customers discussing the popular application server. This article offers a recap of the opening presentations.   [ONJava.com]

Migrating a WebLogic EJB Application to JBoss  WebLogic and JBoss both offer powerful and popular EJB servers, but they're not completely compatible: an application deployed on one won't immediately deploy on the other. In this article, Deepak Vohra shows how to alter the deployment descriptors to make the migration.   [ONJava.com]

A Look at Commons Chain: The New Java Framework  In part one of a two-part series, Bill Siggelkow covers the basics of Chain, a promising new framework from the Jakarta Commons subproject that lets you integrate Chain into the Struts build process. In part two, Bill will cover how Chain is being applied to Struts and other projects. Bill is the author of O'Reilly's Jakarta Struts Cookbook.   [ONJava.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]

Introduction to WS-Addressing  The proposed WS-Addressing specification defines a standard for incorporating message addressing information into SOAP Web services, instead of leaving this to the transport layer. Beth Linker provides an introduction to this specification and its potential use.  [dev2dev]

Introducing JBoss Remoting  With JBoss World 2005 a week away, JBoss has introduced a new remoting framework. Before you say "another one?" John Mazzitelli hopes you'll take a look at JBoss Remoting, which rids you of RMI-style skeletons and stubs, and offers flexibility and extensibility on both the client and server sides.   [ONJava.com]

On-Demand Stateful EJBs  EJB session beans can be stateful or stateless, but they can't easily change from one to the other. That can be a problem in certain business situations. Swaminathan Radhakrishnan has a pattern that he says can address this problem.   [ONJava.com]

Internationalization, Part 2  Having your Java apps run correctly both down the street and across the globe presents some hefty challenges. Part one of this two-part excerpt from Java Examples in a Nutshell, 3rd Edition covered the first two steps to internationalization in Java: using Unicode character encoding and handling local customs. This week deals with the third step in the process: localizing user-visible messages.   [ONJava.com]

Designing a Fully Scalable Application  It's difficult, maybe impossible, to know up front how much or in what ways your application will need to scale. But by decoupling parts of the application, you can at least ensure that the scaling process can be kept modular. Amir Shevat shows how some sharable pieces of the MantaRay messaging system can allow your app to grow beyond one box.   [ONJava.com]

JDMK and Legacy IT Management  Keeping a network with legacy (and possibly unreliable) devices is nearly impossible without some automated help. Stephen Morris shows how to use the Java Dynamic Management Kit to keep tabs on your network and find potential points of failure.   [ONJava.com]

Internationalization, Part 1  Writing software that is truly multilingual is not an easy task. In this excerpt from Chapter 8 of Java Examples in a Nutshell, 3rd Edition, author David Flanagan offers programming examples for the three steps to internationalization in Java: using Unicode character encoding, handling local customs, and localizing user-visible messages.   [ONJava.com]

Eclipse Plugins Exposed, Part 1: A First Glimpse  Many developers use Eclipse out of the box as an IDE, never investigating its powerful extensibility. But as Emmanuel Proulx shows in this first installment of a new series, Eclipse's modular system of plugins allow you to customize it to your suit your development needs.   [ONJava.com]

WS-Security in the Enterprise, Part 1: Problem Introduction  WS-Security doesn't exist in a vacuum--in an enterprise, it must work with many other systems, which means dealing with other access control systems and potential incompatibilities. Denis Pilupchuk begins his series on integrating WS-Security and enterprise systems by spelling out where the problem lies and what pieces need to be created to resolve it.   [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]

Object-Relational Mapping with SQLMaps  Hibernate is great--if your DBA will let you run generated database queries on his or her system. Sometimes you need to keep the option of hand-optimized queries open. Sunil Patil introduces SQLMaps, a framework that allows you to do just that.   [ONJava.com]

Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond  Flipping bits on and off is the lowest level of computing, and most Java developers are totally isolated from it. But maybe they shouldn't be. In this article, Glen Pepicelli introduces the idea of bitsets--ints and longs whose bitwise representation are the data you're interested in--and how they can be used with mathematical and logical operators to write faster code.   [ONJava.com]





Boxing Conversion in J2SE 5.0
Boxing Conversion in J2SE 5.0


Java Cookbook: Recipe of the Day

You want an easier means of synchronizing threads.

Do it now.

Weblogs: Links & Commentary

Desktop Java Features in Mustang by Chet Haase [java.net weblogs]

Dolphins respond to bugs by Daniel H. Steinberg [java.net weblogs]

Swing Update: No More Gray Rect by Chet Haase [java.net weblogs]

Speeding the desktop by Daniel H. Steinberg [java.net weblogs]
More Java-related web logs.

Today's News
April 20, 2005

Symantec Patents Multiple File Area Virus Scanning DigitumDei writes "Symantec announced on Wednesday that it has aquired a new patent (United States Patent - 6,851,057) titled "Data driven detection of viruses". Symantec has declined to comment on whether it will pursue litigation. Symantec's director of intellectual property Michael Schallop stated : 'We don't generally discuss how we will leverage this patent against competitors or others,'." From the article: "[The patent] could refer to any technology that allows antivirus researchers or antivirus products to use scripting to determine, dynamically, where in a file to scan and detect threats. It could also include the use of Javascript or other common scripting languages to direct antivirus scanning..." [Source: Slashdot Org latest news headlines]

JCP Lets Java 'Mustang' Run Free [Source: internetnews.com: Top News]

Gaming Development Setup One important step in creating your own computer games is configuring your development environment. ... [Source: Developer Shed]

Chat Transcript Available: Getting High Performance from Your Desktop Client On February 15, 2005, Scott Violet and Chet Haase hosted an online chat on desktop performance. Topics included SwingWorker, Longhorn, grey rectangles and more. [Source: Java Technology Highlights]

MP3beamer Released An anonymous reader writes "MP3tunes, Michael Robertson's new music venture, has released a snazzy linux music appliance called MP3beamer. The $399 box auto-rips CDs and imports MP3s and then connects to iTunes, Java devices, media receivers, web devices even WinCE units with handy feature to "sync" songs from server to remote machine for offline playback not just streaming - see screenshots. Last time Robertson launched something with "Beam" in the name it led to avalanche of lawsuits and more then $150MM in legal payments with BeamIt from the old MP3.com." It'd be excellent to get a review of one of these machines; looks like a good one. [Source: Slashdot Org latest news headlines]


Events

JavaOne
San Francisco, CA Jun. 27, 2005

> More


Sponsored by:




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

Copyright © 2000-2005 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