Skip to main content

Give a Little Bit

Posted by editor on October 27, 2005 at 8:01 AM PDT

Adapting AJAX Incrementally

One protest against new frameworks and tools is how often the baby gets thrown out with the bath water. If you're already invested in one approach, switching a new one often requires throwing away some or all of your existing work. Switch to Ruby on Rails and you have to throw out all your existing Java knowledge too. Is this truly necessary?

Today's Feature Articles takes more of an incrementalist approach. In Sprinkle Some AJAX Magic in Your Struts Web Application, Paul Browne looks at how you can start adding AJAX features to the client side of a Struts-based web application, without having to throw out your old work, or Struts itself. As he points out "Since AJAX is a technique, not a framework, it is straightforward to add it to Struts."

This incremental approach to working the new into the old "allows us to reuse our existing investment, not only in code but also in developer skills. As a nice by-product, it also allows us to write cleaner, more reusable, Java Struts applications."

John Reynolds has a little fun at AJAX's expense in today's Weblogs. In
AJAXOffice, the next big thing, he asserts:
"Contrary to Jonathan Schwartz's 'common sense' views, rewriting OpenOffice in AJAX will revolutionize the software industry, reduce global warming, and promote good posture."

Kohsuke Kawaguchi has some useful advice about
Tools for project owners:
"Those of us who run projects on knows how painful the web interface can be sometimes. Simple things like adding a person to your project take multiple mouse clicks, and when pages load slowly (like just now!), it can quickly kill your productivity. Today, I'm going to talk about the tools that solve this problem."

Java significance, Felipe Gaucho writes:
"These days I was explaining to a cartoon designer about the need of a logo for my OpenSource projects, and he asked me about the theme he should use in order to create such logos. I gave him some words like freedom, technology and JAVA and we started to discuss about something different, something very creative. 'Java?' he asked me - 'Yes, Java I answered' - the strange spot of this conversation was due to the several meanings for this exotic word: Java."

In Also in
Java Today

Thinking in Java author Bruce Eckel is asking for some help with the next edition, via his Artima blog entry Use cases for Generics. "Trying to pick them apart in previous weblogs and in the chapter, I finally realized that each example of generics that you see is usually comprised of multiple use cases, which can make them confusing to learn from. So I've started a list of use cases, where I try to focus on only one issue of generics for each item in the list. What I'm hoping you will do is to look over this list and see if there are any (A) improvements and (B) additions that you can make."

New uses for aspect-oriented programming are described in Add Object Cache Monitoring Using JMX and Aspects, in which Srini Penchikala describes his company's strategy for using and monitoring an object cache. "We wanted to use the Java Management Extensions (JMX) technology for this requirement, but didn't want to change any existing application code because we weren't sure how much overhead the monitoring code would add. We decided to use Aspect Oriented Programming (AOP) techniques to dynamically introduce JMX code into existing Java classes and get the cache statistics that way."

In Projects and
the article Sun's Jini Upgrade To Ease Integration Dev interviews the Jini Technology Team about the recently-released and Apache-licensed Jini Technology Starter Kit 2.1, as well as Jini's applicability in realms such as grid computing, edge networking, and e-business applications.

The JDK Community home page is featuring the SDN article Use Profile Feedback To Improve Performance, which describes how to use information collected by the profiler in a subsequent re-compile of the code, allowing the compiler to make optimizations based on how the code actually executes at runtime.

In today's Forums,
linuxhippy wants to know
How to get statistic about Locks?
:I know the Mustang-debug-build has one of those favourite -XX+Print options for lock-statistics, however I've read it once and now I can't remember anymore. Does anybody know the parameter name for to enable printing lock statistic?"

Continuing the debate Re: Pass by reference - why not?, tobega writes:
"If you are getting multiple unrelated values out of a method, you have a SERIOUS problem in the design of your code.... Trying to make Java more like C is totally breaking the whole idea of Java, especially when you start talking about pointer-like constructs. I would rather go the other way, i.e. even Objects passed as parameters should not be allowed to be modified (at least not without a compiler check that the caller understands this will happen)"

In today's
News Headlines

Registered users can submit news items for the href=""> News Page using our
news submission
. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href=""> News RSS

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href=""> events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

Adapting AJAX Incrementally