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  
O'Reilly Emerging Technology Conference: March 14-17, 2005, San Diego, CA.
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



  

Object-Relational Mapping with SQLMaps
When you want hand-optimized SQL, but not in code

  

Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond
Chess and more as 1s and 0s

  

IRC Text to Speech with Java
Convert IRC messages into audible speech so you can keep working

  

Internals of Java Class Loading  When are two classes not the same? When they're loaded by different class loaders. This is just one of many curious side effects of Java's class-loading system. Binildas Christudas shows how different class loaders relate to one another and how (and why) to build your own custom class loader.   [ONJava.com]

O'Reilly Learning LabWeb Programming Certificate Series -- This six-course series from the O'Reilly Learning Lab teaches you the skills needed for web programming, web administration, and website development. You'll learn HTML, JavaScript, XML, SQL, Perl, and Unix. Upon completion of the series, students receive a Certificate of Professional Development from the University of Illinois Office of Continuing Education. Sign up by February 22nd, and save 40% on all Web Programming Certificate courses.

QuickTime for Java Components  In this excerpt from QuickTime for Java: A Developer's Notebook, Chris Adamson introduces QuickTime components and how they enable runtime discovery of available features, including importers and exporters for graphics and movie formats.   [ONJava.com]

An Introduction to Service-Oriented Architecture from a Java Developer Perspective  Service-oriented architectures offer a new way to think about building software applications, with coarse-grained pieces of functionality split out into "services" that communicate with standardized, widely understood interfaces like XML and SOAP. In this article, Debu Panda shows you how to design and connect SOAs.   [ONJava.com]

Software Infrastructure Bottlenecks in J2EE  Sometimes you can throw more CPUs and memory in a box and your web application doesn't get any faster. This can happen when the bottleneck is not in the hardware but the software; specifically, your application server. Deepak Goel looks at what this looks like in terms of performance characteristics and what you can do about it.   [ONJava.com]

Validating Objects Through Metadata  Metadata, in the form of J2SE 5.0's annotation, allow you to mark up your your code with declarative information, and then use reflection to pull out those annotations at runtime and use them. Jacob Hookom shows how these techniques can be used to validate input to your application.   [ONJava.com]

Build an eDoc Reader for Your iPod, Part 3  The availability of capable, open-source Java libraries makes it very tempting to call those libraries from otherwise native applications. But it's not always easy. In "Build an eDoc Reader for Your iPod, Part 3", Matthew Russell shows how he used a Java PDF library and Mac OS X's Cocoa-Java bridge to bring PDF support to his eDoc reader.  [MacDevCenter.com]

Parsing an XML Document with XPath  Pulling just a single node value or attribute from an XML document can be inefficient if you have to parse over a whole list of nodes you don't want, just to get to one you do. XPath can be much more efficient, by letting you specify the path to the desired node up front. J2SE adds XPath support, and the JDOM API also offers support through an XPath class. Deepak Vohra looks at both approaches.   [ONJava.com]

Streaming QuickTime with Java  Realtime multicast streaming came to QuickTime in version 5, but now, years later, it's not widely realized that it can be called from QuickTime for Java. Chris Adamson, author of QuickTime for Java: A Developer's Notebook, shows how it works.   [ONJava.com]

Mock Objects in Unit Tests  Unit testing your code against a service or process that's either too expensive (commercial databases) or just not done yet is something you can deal with by simulating the other piece with a mock object. EasyMock can suffice in some cases, but it can only create mock objects for interfaces. Mocquer, based on the Dunamis project, can create mocks for classes, too. Lu Jian shows how it works.   [ONJava.com]

Caching Dynamic Content with JSP 2.0  Server-side caching is a powerful and popular technique for improving the performance of server-side applications. After all, why compute twice what you can compute once and hang on to? Andrei Cioroianu shows you how to exploit this technique in JSP 2.0.   [O'Reilly Network]

Working with Hibernate in Eclipse  Jim Elliott was curious about whether anyone had written plugins to work with Hibernate in Eclipse, 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.   [O'Reilly Network]

Results from the Second 2004 ONJava Reader Survey  Editor Chris Adamson summarizes the results of the recent reader survey, including favorite tools, platforms, and what you want to see on the site in 2005.   [O'Reilly Network]

ONJava 2004 in Review: Editor's Choice  Editor Chris Adamson takes a look back at some of the most interesting articles published on ONJava during the last year.   [ONJava.com]

Jini: Out of the Bottle and Into the Box  What if a Jini lookup service was available in every shipping JVM? Not just for enterprise applications - where Jini is a natural fit - but also in every J2SE and J2ME distribution. Jini is Java's secret weapon.   [ONJava.com]

The Hidden Gems of Jakarta Commons, Part 1  The Jakarta Commons has a wide-ranging collection of handy classes that can save you the trouble of reinventing the wheel yet again. In this new series, Tim O'Brien looks at some of the more overlooked parts of the Commons and what you can do with them.   [ONJava.com]

ONJava 2004 in Review: Popular Articles  Editor Chris Adamson takes a look back at some of the most popular articles published on ONJava during the last year.   [ONJava.com]

Towards Bug-Free Code  Test-driven development sometimes sounds better than it turns out to be. Early decisions to tightly couple functional parts of your system can make it a lot less amenable to testing than it ought to be. As Ashwin Jayaprakash shows, J2SE 5.0's generics make working with abstract classes and interfaces easier than it used to be, which encourages loose coupling and facilitates testing.   [ONJava.com]

Generating an XML Document with JAXB  Among the positive aspects of XML Schemas is their support by the Java Architecture for XML Binding (JAXB). In this article, Deepak Vohra shows how JAXB can help convert a schema-supported XML file to a regular Java object and back again.   [ONJava.com]

Session Replication in Tomcat 5 Clusters, Part 2  In part two of his survey of session replication, Srini Penchikala gets down to raw numbers by comparing the effects of different sizes and styles of replication on cluster performance.   [ONJava.com]

A Distributed Discussion with Elliotte Rusty Harold  In this interview, Java Network Programming, 3rd Edition author Elliotte Rusty Harold discusses the improvements and hazards of networking in Java, as well as the evolution of Java itself.   [ONJava.com]

Distributed Enterprise Messaging with MantaRay  Java Messaging Service (JMS) is a much-used system for distributed enterprise applications, but many implementations use a "broker" approach that creates bottlenecks. MantaRay implements the JMS API through a peer-to-peer approach that, as Amir Shevat reports, provides some significant advantages.   [O'Reilly Network]

URLs and URIs, Proxies and Passwords  Java networking is seldom as simple as it first seems. In this excerpt, one of a series from Java Network Programming, 3rd Edition, Elliotte Rusty Harold shows how to encode and decode URLs, work with URIs, use multiple proxy servers, query servers with HTTP GET, and use password-based authentication.   [O'Reilly Network]

Open Source Licenses Are Not All the Same  As open source and the Internet continue to grow in popularity, more and more users and developers come into contact with open source code. Though the various licenses increase user rights somehow, they all do it in different ways and with different goals. Steve Fishman categorizes several popular licenses and explains their implications.  [ONLamp.com]

Integrating Macromedia Flex with Java  Web applications don't have to be about HTML. Rich client-side environments offer a better end-user experience but demand some rethinking of the web app client-server relationship. Mark Eagle shows how you can use Macromedia Flex to bring rich applications to Flash-equipped browsers.   [ONJava.com]

Creating Toolbars Using SWT  The final element that end users expect to see in a well-designed window is the toolbar. In this PDF excerpt from SWT: A Developer's Notebook, Tim Hatton succinctly explains each step and guides you through the development of the toolbar.   [ONJava.com]

Simple Object Persistence with the db4o Object Database  Mapping Java objects to relational databases is a difficult task, fraught with perils and gotchas. db4o dodges the issue entirely by providing an object-oriented persistence mechanism that is small, lightweight and efficient. Jim Paterson shows how it works.   [ONJava.com]

Session Replication in Tomcat 5 Clusters, Part 1  A web application running on a single server is completely lost if the server goes down. But with a cluster, user sessions can be replicated across servers, so that the system stays up even if one server fails. Srini Penchikala presents Tomcat 5's handling of this feature.   [ONJava.com]

Compiling an AspectJ Project Using Eclipse  You may be ready for aspect-oriented programming, but are your tools? In this PDF excerpt from AspectJ Cookbook, Russell Miles shows you how to install and use an AspectJ-aware plugin for the Eclipse IDE.   [ONJava.com]

Juggle Your Java with JDistro  Typically, one Java application will live in its own virtual machine, but this is neither required nor necessarily desirable. JDistro, a multitasking Java application, makes it possible to run applications, applets, and more, all inside of one process. Howard Wen interviewed creators Guillaume Desnoix and Gérard Collin to find out how it works.   [ONJava.com]

Dynamic Delegation and Its Applications  Proxy, introduced in Java 1.3, offers an interesting way to provide an interface's implementation at runtime, but there's more that can be done. Lu Jian shows how bytecode manipulation can be used to provide dynamic delegation, allowing you to provide runtime implementations of interfaces, abstract classes, and even concrete classes.   [ONJava.com]

Agile User Interface Development  Agile is a sea of change, refocusing software developers on quality and speed. Its impact on the practice of software development is already being compared to that of object-oriented design. However, one area of effort has been slow to change: development of the graphical user interface (GUI). The critical question: how do you do test-first GUI development? Paul Hamill, author of Unit Test Frameworks, discusses separating GUI elements into smart objects and thin view components and doing TDD of the smart objects.   [ONJava.com]





The social golfer problem
Pick up container-managed transactions for free


Java Cookbook: Recipe of the Day

You need to process data in "last-in, first-out" ( LIFO) or "most recently added" order.

Do it now.

Weblogs: Links & Commentary

JavaOne Review Madness by Graham Hamilton [java.net weblogs]

A cautionary LGPL tale by John Reynolds [java.net weblogs]

Make your builds always available by Kohsuke Kawaguchi [java.net weblogs]

Java talks at this year's OSCon by Daniel H. Steinberg [java.net weblogs]
More Java-related web logs.

Today's News
February 07, 2005

Gosling Claims Huge Security Hole in .NET renai42 writes "Java creator James Gosling this week called Microsoft’s decision to support C and C++ in the common language runtime in .NET one of the 'biggest and most offensive mistakes that they could have made.' Gosling further commented that by including the two languages into Microsoft’s software development platform, the company 'has left open a security hole large enough to drive many, many large trucks through.'" Note that this isn't a particular vulnerability, just a system of typing that makes it easy to introduce vulnerabilities, which last time I checked, all C programmers deal with. [Source: Slashdot Org latest news headlines]

Chat Transcript: Solving the Device Fragmentation Problem Read the questions that your fellow developers had about the new feature in NetBeans Mobility Pack 4.0 that helps solve device fragmentation problems, and the answers straight from the engineers who created the module. [Source: Java Wireless Technology Highlights]

NetBeans IDE 4.1 Out-of-the-box support for J2EE 1.4 and Web Services. Check out what early access release 2 can do for you! [Source: Java Technology Highlights]

J2SE Platform Migration Guide (pdf) This guide helps developers migrate Java applets, standalone applications, Java Web Start applications and development tools from version 1.3 and 1.4 of the Java platform to version 5.0. [Source: Java Technology Highlights]

Java Enterprise Serves Up Lower-Cost Suites [Source: internetnews.com: Top News]


Events
There are no current events at this time. More Events

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