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  


  

Quick and Easy Custom Templates with XDoclet
Calm your Ruby on Rails envy via Java code generation

  

Generic Types, Part 2
Writing your own generic types and generic methods

  

Building Cocoa-Java Apps with Eclipse
Mixing Cocoa with Eclipse

  

The REST of the Web  REST, Representational State Transfer, is a collection of design principles that use simple, stateless HTTP for data transfer, without the method-call-like abstractions of RMI or SOAP. Jason R. Briggs shows how you can use this simple architecture, with Jython and Velocity, to develop nimble, loosely coupled web applications.   [ONJava.com]

Generic Types, Part 1  In part one of this two-part excerpt from Java in a Nutshell, 5th Edition author David Flanagan explores the basic use of generics in typesafe collections, and then delves into their more complex uses. In addition, he covers type parameter wildcards and bounded wildcards. In part two next week, David tackles how to write your own generic types and generic methods.   [ONJava.com]

Oracle Space SweepstakesOne giant leap for developers -- The company that brings developers cutting-edge technologies like BPEL and ADF will soon bring one lucky developer to the edge of space. Enter now for the Oracle Space Sweepstakes for a chance to win a Space Adventures suborbital space flight, along with other prizes including Mac PowerBook G4s, 20GB Apple iPods, and Star Wars Trilogy DVD sets.

--Advertisement--

XML Namespaces Don't Need URIs  Mike Day argues that using URIs to identify XML namespaces was a terrible mistake that's caused far more trouble than it's worth.  [XML.com]

Five Favorite Features from 5.0  A lot has been written about Java 5.0's great new features, leaving David Flanagan to focus on this review of five of his favorite new API features: the Callable and Future interfaces, new APIs for varargs and autoboxing, new ability interfaces, the @Override annotation, and MatchResult. Read to the end, where David reveals a bonus sixth feature, a new language syntax supported by Java 5.0 but known to very few. David is the author of Java in a Nutshell, 5th Edition.   [ONJava.com]

Enterprise Streaming  The Java Message Service is a lynchpin of J2EE, but is in some ways more difficult and less flexible than more basic forms of communication, like the stream model of the java.io package. However, as Amir Shevat writes, the two are not mutually exclusive--you can write to JMS topics and queues with streams.   [ONJava.com]

Simplifying Java with Jakarta Commons Lang  Harshad Oak provides an overview of the Jakarta Commons Lang project and shows how the components in this project can simplify and accelerate development.  [dev2dev]

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]

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]





Breaking the Last Dependency
Java Breaking the Last Dependency


Java Cookbook: Recipe of the Day

You want an easier means of synchronizing threads.

Do it now.

Weblogs: Links & Commentary

How to create pulsating buttons in your Look and Feel by Kirill Grouchnikov [java.net weblogs]

Building Java PathFinder with NetBeans by Gregg Sporar [java.net weblogs]

Deployment: Understand JRE Download Size by Stanley Ho [java.net weblogs]

End to end by Daniel H. Steinberg [java.net weblogs]
More Java-related web logs.

Today's News
May 06, 2005

Apache's Lenya as Easy as 1.2.3 The open source Java/XML content management system improves revision control, site management, scheduling and search. [Source: internetnews.com: Top News]

Debugging Tips for Applications Built With Sun Java Studio Enterprise 7 Learn how to best configure the debugger and compiler settings, initiate debugging sessions, and effectively debug JSP pages, servlets, and multithreaded issues. [Source: Java Technology Highlights]

The Learning Curve: Journal 4: Getting Familiar with Web Services Walter Hardy explores the terminology and technology around web services, and takes a look at how they work within the Java Studio Creator environment by building an application that uses Google's web services to check spelling. [Source: Java Technology Highlights]

PHP and JavaScript Interaction: Storing Data in the Client, part 1 Modern websites demand heavy interaction between server-side and client-side programming. In the fir... [Source: Developer Shed]

Chat Archive: Java Enterprise System and Sun Java Studio Enterprise Integration <br />Java Studio Enterprise is the development tool for the Java Enterprise System. Sun Microsystems' engineers Charles Beckham, Ludovic Champenois, and Inderjeet Singh discuss some unique plug-ins to enable faster, more productive development and deployment. [Source: Java Technology Highlights]


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