Mustang: The fast track to Web services
The upcoming release of Java Platform, Standard Edition (Java SE)
version 6.0, also known as Mustang, makes development and
consumption of Web services a breeze. It brings the power of
metadata (just type @WebService and you are almost
done) to simple Java classes, enabling them to be deployed as Web
services. It also brings the Java API for XML Web Services to
clients consuming those services. This article takes a hands-on
approach to developing metadata-based Web services and thereafter
consuming them using JAX-WS.
Gautam Shah,
July 2006
Develop configurable software applications with ease
The Obix Framework is an XML and Java configuration framework that
provides developers with the ability to easily and quickly develop
configurable software applications. This tutorial is a quick and
short introduction to the framework, which demonstrates how to
develop configurable Java Platform, Standard Edition applications.
It shows how to create basic XML configuration files and access
their values using plain Java objects. It also illustrates how to
create modular configuration sets, as well as how to import/include
files into one another to create better delineated and reusable
configuration data.
Obi Ezechukwu,
June 2006
Speak your own programming language with Web scripting
In Char Wu's previous JavaWorld article, "
Build Your Own Scripting Language for Java" (April 2006), he
designed and implemented a simple Boolean language called
BoolScript and used it to illustrate all the aspects of Java
Specification Request 223, Scripting for the Java Platform, except
for the JSR's Web scripting capability. This article will take that
same language and equip it with that missing piece. The end result
of these efforts is the ability to run BoolScript code in a servlet
container.
Chaur Wu,
May 2006
Design and performance improvements with JDBC 4.0
Java Database Connectivity (JDBC) 4.0 is ready for release by mid
2006 as a part of Java Standard Edition 6.0. How can you leverage
the new specification to improve the design and performance of
database access and interactions in Java applications? This article
discusses the new features of JDBC 4.0, illustrates its solutions
to some existing problems, and presents its improvements in design
and performance through examples.
Shashank Tiwari,
May 2006
Build your own scripting language for Java
The upcoming Java Standard Edition 6.0 release will include an
implementation of Java Specification Request 223, Scripting for the
Java Platform. This JSR is about programming languages and their
integration with Java. This article demonstrates the power and
potential of JSR 223 through the implementation of a simple Boolean
language. Throughout the example, you will see how to program to
the Scripting API (javax.script.*), how to package and
deploy a language implementation in accordance with the script
engine discovery mechanism, and how to make your script engine
compilable as well as invocable the JSR 223 way.
Chaur Wu,
April 2006
Manage your JMX-enabled applications with jManage 1.0
Java Management Extensions (JMX) technology enables management and
monitoring of applications and services via MBeans (managed beans),
allowing JMX clients to be developed independently using standard
protocols. jManage is an open source, Web and command line-based
JMX client, providing a centralized console for managing
application clusters and distributed-application environments.
jManage goes beyond an ordinary JMX client by providing features
like alerts, graphs, security, SNMP (Simple Network Management
Protocol) support, and more. This article introduces you to jManage
1.0 features using J2SE 5.0 MBeans as examples and highlights the
upcoming jManage 1.5 features.
Rakesh Kalra,
January 2006
Start saddling up for Mustang
This article introduces you to Mustang, the newest version of the
Java platform that will be officially released later this year. Jeff
Friesen explores Mustang's console input/output and partition-space
methods, and its APIs for working with splash screens and
interacting with the system tray.
Jeff Friesen,
January 2006
Design an MVC framework using annotations
Model-View-Controller (MVC) is a software architecture that
separates an application's data model, user interface, and control
logic into distinct components so that modifications to one of the
components can be made with minimal impact to the others. In this
article, you learn how to design a framework that extends MVC and
uses annotations to achieve an (almost) complete decoupling between
the model and view.
Riccardo Govoni,
October 2005
Annotations to the rescue
Java annotations can be used for more than just marking deprecated
code. In this article, they are used to hand over method-invocation
control to a lightweight framework component that manages the
sequence in which a set of methods is called. The responsibility
and logic of correct initialization, setup, etc., can thereby be
delegated away from the class to the client application for
adjustable configuration and control.
Norbert Ehreke,
August 2005
An annotation-based persistence framework
The getter/setter idiom has always been problematic; it allows
too-broad access to the implementation of your classes, degrading
maintainability as a consequence. The J2SE 5.0 annotation (or
metadata) feature provides an alternative. Rather than using
introspection to find get/set methods, you can "tag" an object with
an annotation and then access that annotation at either compilation
or at runtime. This article both describes the annotation mechanism
and presents the output side of an XML-based persistence mechanism
that uses annotations to tag persistent classes and fields.
Allen Holub,
March 2005
Sun upgrades J2SE platform
October 4, 2004—Application developers are getting a raft of new options this week with Sun Microsystems updating J2SE, Borland
Software upping its CORBA ante, and Compuware detailing products that will work with Microsoft Visual Studio 2005 toolbox.
Paul Krill,
October 2004
Enforce strict type safety with generics
Java generics are the exciting new feature of Java 5 (renamed from
J2SE 1.5) due for release shortly. Much controversy surrounds
generics. In fact, Sam Pullara suggests
that generics are just a really complicated way of implementing
autocasting. In this article, Conan Dalton attempts to present one
of the bright sides of generics: the ability to enforce stricter
type safety—in particular, a kind of type safety that can not
be achieved with autocasting. Dalton uses a simple but reusable
event-dispatching mechanism for an example and compares a
generics-aware implementation with a non-generics-aware
implementation. He explains some of the more obtuse elements of the
new Java syntax and, in conclusion, suggests that generics may have
a different impact depending on whether you are an API client or an
API developer.
Conan Dalton,
September 2004
Taming Tiger, Part 3
The Java 2 Platform, Standard Edition (J2SE) Version 5 (previously
called J2SE 1.5; Sun has changed its version numbers) contains new
and exciting features, many of which have been long awaited for by
Java programmers. J2SE 5—code named "Tiger"—is the most
significant revision to the Java language since its original
inception. Tarak Modi's primary goal with his three-part series on
Tiger is to familiarize readers with J2SE 5's most important
additions and show how to capitalize on these additions in the real
world. Part 3 focuses on annotations, Tiger's new metadata feature.
Tarak Modi,
July 2004
Taming Tiger, Part 2
The Java 2 Platform, Standard Edition (J2SE) 1.5 contains new and
exciting features, many of which have been long awaited for by Java
programmers. J2SE 1.5—code named "Tiger"—is the most
significant revision to the Java language since its original
inception. Tarak Modi's primary goal with his three-part series on
Tiger is to familiarize readers with J2SE 1.5's most important
additions and show how to capitalize on these additions in the real
world. In Part 2, he introduces generics.
Tarak Modi,
June 2004
Taming Tiger, Part 1
The Java 2 Platform, Standard Edition (J2SE) 1.5 contains new and
exciting features, many of which have been long awaited for by Java
programmers. J2SE 1.5—code named "Tiger"—is the most
significant revision to the Java language since its original
inception. Tarak Modi's primary goal with his three-part series on
Tiger is to familiarize readers with J2SE 1.5's most important
additions and show how to capitalize on these additions in the real
world.
Tarak Modi,
April 2004
Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API
Free Download - 5 Minute Product Review. When slow equals Off: Manage the complexity of Web applications - Symphoniq
![]()
Free Download - 5 Minute Product Review. Realize the benefits of real user monitoring in less than an hour. - Symphoniq