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  
O'Reilly Open Source Convention: July 26-30, Portland, OR.
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:

Student Loan
   Consolidation
Auto Parts Online



  

Performance Analysis of J2EE Applications Using AOP Techniques
Profiling production code without re-deploying

  

Nested Classes, Part 1
Mastering the use of inner classes

  

JSP 2.0: The New Deal, Part 4
Tag files and the tag handler

  

Template-Based Code Generation with Apache Velocity, Part 1  This article demonstrates a simple code generator in Java that uses Velocity. The generator takes an XML representation of classes and data members and generates the Java code to define them. The generation process will be driven by a template that encapsulates the syntax of the target programming language.   [ONJava.com]

SQL Database Access with DBTags  Jakarta DBTags is a custom tag library that consists of tags to access and modify a database. This tutorial explains the procedure to incorporate Apache Jakarta DBTags custom tag library tags in an example JSP.   [ONJava.com]

The State of JAXB: Availability, Suitability, Analysis, and Architecture  JAXB, now part of Sun's Web Services Developer Pack, offers a means of converting between Java objects and an XML representation. But is it the ideal solution? Satya Komatineni investigates what JAXB has to offer.   [ONJava.com]

Do As They Need, Not As They Say  Replacing an existing system with a new and improved one should make end users happy, but that's often not the case. What goes wrong? Jeff Lowery calls on his experience to look at the process of developing new systems and why developers need to be advocates for the end users.   [ONJava.com]

Seven Low-Cost Ways to Improve Legacy Code  Robert Simmons, Jr. presents seven techniques developed and used in his consulting work that are designed to improve legacy code, without a major investment in man hours or cash. Robert is the author of the recently released Hardcore Java.   [ONJava.com]

Prototyping Desktop Applications  Does J2SE provide the functionality your application needs? A great way to find out is by developing a prototype, tackling the hard parts first to see if they can be made to work. Andrei Cioroianu employs Java2D and Swing in developing a prototype image-annotation application.   [ONJava.com]

JSP 2.0: The New Deal, Part 3  In this third article on JSP 2.0, Hans Bergsten (author of JavaServer Pages, 3rd Edition) shows the improvements made in JSP 2.0 for writing JSP pages as XML documents.   [ONJava.com]

Java and Security, Part 2  This second and final excerpt from Chapter 17 of WebLogic: The Definitive Guide covers WebLogic's various security providers and their default implementations, along with a look at how to authenticate using JAAS, and examples of Authentication and Identity Assertion Providers.   [ONJava.com]

Declarative Programming in Java  JSR-175 introduces Java annotations, a means of attaching metadata to your Java classes. Narayanan Jayaratchagan looks at how annotations work in J2SE 1.5 and the many ways in which they can be used.   [ONJava.com]

Clustering and Load Balancing in Tomcat 5, Part 2  The latest version of Tomcat provides clustering and load-balancing capabilities for scalable, high-available systems. In part two of this series, Srini Penchikala sets up a Tomcat cluster and assesses its performance.   [ONJava.com]

Java and Security, Part 1  In part one in a two-part series of excerpts from Chapter 17 of WebLogic: The Definitive Guide, authors Avinash Chugh and Jon Mountjoy examine WebLogic's various security mechanisms, beginning with a look at the Java Security Manager and how WebLogic filters connection requests. They also cover WebLogic's authentication and authorization framework and how it supports the standard J2EE security services.   [ONJava.com]

Migrating to Velocity  Velocity offers a compelling way to develop web applications, but converting an existing JSP-based project is no simple task. Jason Briggs shows how he used Velocity servlets to ease the transition.   [ONJava.com]

Java and Sound, Part 2  This second installment in a two-part series of excerpts from Java Examples in a Nutshell, 3rd Edition follows last week's (on playing streaming sounds in both sampled audio and MIDI formats) with examples of how to read a simple musical score and convert it into a MIDI sequence. Author David Flanagan also shows you how to make music by directly controlling a MidiChannel of a Synthesizer.   [ONJava.com]

Wiring Your Web Application with Open Source Java  Building a web application with Java can be a complex process when architecting a combination of UI, business logic, and persistence. This article introduces a way to leverage open source software to lessen the burden.   [ONJava.com]

Introduction to JavaServer Faces  Swing developers enjoy a well-defined set of high-level components for building GUI applications, but what about web applications? JavaServer Faces attempts to bring the same kind of toolkit to the web-app space. Alexander Prohorenko offers an introduction to this new technology.   [ONJava.com]

Clustering and Load Balancing in Tomcat 5, Part 1  The latest version of Tomcat provides clustering and load balancing capabilities for scalable, highly available systems. In part one of this series, Srini Penchikala looks at architectural factors to consider in such a system and how Tomcat implements them.   [ONJava.com]

Java and Sound, Part 1  Where can you learn how to play simple audio clips with the java.applet.AudioClip class, as well as how to use the javax.sound.sampled and javax.sound.midi packages to do such things as load and play sound clips, and monitor and change the playback position within a clip? In these first excerpts in a two-part series of excerpts from Chapter 17 ("Sound") of Java Examples in a Nutshell, 3rd Edition.   [ONJava.com]

Bug Prevention with Code Generation: A J2EE Case Study  If you had to drill 12,000 holes, would you prefer a manual drill, or its automated equivalent? Francesco Aliverti-Piuri describes using code generation for discovering bugs in a J2EE example.   [ONJava.com]

Using a Request Filter to Limit the Load on Web Applications  When your site is slow, users keep clicking and making new requests, which only makes things worse. Kevin Chipalowsky and Ivelin Ivanov present a servlet filter that limits the stress a single user can put on your Java web application.   [ONJava.com]

Lisp and Java  First-class functions are a powerful feature of the Lisp programming langauge. This article describes some ways they can be used, and explores how to approximate them in Java.   [ONJava.com]

J2EE Connector Architecture  This article looks at some of the challenges of legacy system integration, then introduces the J2EE Connector Architecture (J2EE CA) and explains how it can significantly reduce the problems of integrating your legacy system. It also offers a comprehensive example of how to use the current version of J2EE CA to access a common transaction-processing platform from a Java 2 Enterprise Edition (J2EE) platform application.   [ONJava.com]

Extending Maven Through Plugins  Maven is the build tool that does everything for you, from compiling code to setting up structures for process and documentation. But what if there's something more that you do and you want to integrate it into Maven? Eric Pugh shows you how to do this with Maven plugins.   [ONJava.com]

Lazy Loading with Aspects  AspectJ allows the Java community to apply modular crosscutting concerns, or aspects, to their applications. Lazy loading is one such crosscutting concern that can benefit from an Aspect-Oriented, rather than traditional Object-Oriented, implementation approach. This article presents an implementation of lazy loading using AspectJ.   [ONJava.com]

ONJava Reader Survey  This year's ONJava survey asks you which technologies you use, and where and how you use them. Help us shape the site and enter for your chance to receive three O'Reilly books of your choosing.   [ONJava.com]

Job Scheduling in Java  Scheduling recurring execution of a piece of code is a common task for Java developers. The Timer class has its place, but as Dejan Bosanac explains, developers with more sophisticated requirements might want to check out the Quartz API.   [ONJava.com]

Java APIs for Bioinformatics  An introduction to Java APIs for bioinformatics. This article includes usage information, examples, and current design challenges for API developers in the life sciences field.   [ONJava.com]

BlackMamba: A Swing Case Study  It's one thing to learn the bits and pieces of a Swing GUI -- how to create a model and wire it up to a JTable or JTree. It's quite another to think through and develop a full-blown application. Ashwin Jayaprakash uses an email client, BlackMamba, to show how the pieces of a Swing application fit together.   [ONJava.com]

MVC Heresy with SQLTags  When the "right" way is more than you need, is it wrong to do what works? Steve A. Olson introduces the SQLTags toolkit, which takes database access out of its traditional tier and puts it directly into JSP tags.   [ONJava.com]

Another Java Servlet Filter Most Web Applications Should Have  Adding to his previous must-have servlet filters, Jayson Falkner introduces another: one to activate client-side caching, so browsers won't re-request items they can just cache.   [ONJava.com]

Cooking with Java Servlets & JSP, Part 2  In this second and final batch of recipes excerpted from Java Servlet & JSP Cookbook, author Bruce Perry shows you how to access an EJB from a servlet on WebLogic, and how to connect to Amazon Web Services (AWS) with a servlet or JSP.   [ONJava.com]





Using Java Classes in Windows Batch Files
Running Java without "java ..."


Java Cookbook: Recipe of the Day

You want to align strings left, right, or centered.

Do it now.

Weblogs: Links & Commentary

Swing Hack 8: An eyedropper tool by Joshua Marinacci [java.net weblogs]

A new deck of cards: I found a Job! by Richard Monson-Haefel [java.net weblogs]

JSR 170 goes public by John D. Mitchell [java.net weblogs]

TheServerSide Symposium- Day 1 - May 6th, 2004 by Kito D. Mann [java.net weblogs]
More Java-related web logs.

Today's News
May 19, 2004

IBM Throws SOA Party, Invites Customers Looking to build an SOA using Java? IBM is ready to help at one of its four new SOA Design Centers. [Source: internetnews.com: Top News]

Developing JavaServer Pages In this excerpt from chapter 4 of Joel Murach's Java Servlets and JSP, you'll learn how to develop a... [Source: Developer Shed]

Kodak vs. Sun Java Trial Date Set sirshannon writes "CNET News.com.com.com.com is reporting that the Kodak vs. Sun trial date has been set for September 15. Kodak claims that Java infringes on ... [Source: Slashdot Org latest news headlines]

JavaServer Faces Moderated Chat Learn how JavaServer Faces allows you to become more productive in building web applications. Join the free moderated chat on May 18th 10am PDT/5pm GMT. [Source: Java Technology Highlights]

The J2EE 1.4 SDK and Sun Java Application Server Platform Edition 8 Read the transcript of the April 27 chat on the J2EE 1.4 SDK and its integral component, Sun Java System Application Server Platform Edition 8. Find out what's new and exciting about this implementation of the J2EE 1.4 Platform. [Source: Java Technology Highlights]


Events

Rocky Mountain Software Symposium
Broomfield, CO May. 21, 2004

Research Triangle Software Symposium
Durham, NC Jun. 11, 2004

Western Canada Java Software Symposium
Calgary, Alberta Jun. 25, 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