Skip to main content

The GlassFish project

Posted by daniel on June 13, 2005 at 2:25 PM PDT

Sun's J2EE in the open

One of the repeated themes in the GlassFish documentation is that the "project is designed to encourage communication between Sun engineers and the community and will enable all developers to better understand Sun's J2EE development process." I think that has certainly been the case in the work on the Mustang release. Not so much a look at Sun't process so much as communication in forums and blogs between the community and the engineers.

This week's project spotlight is GlassFish. "The first available module is Webtier, the next generation application server which uses Grizzly, an HTTP listener implemented in Java NIO. Access to more modules is in the works."

GlassFish seems to be everywhere. In today's Weblogs, Brian Leonard answers the question
What's It Take To Build The J2EE SDK?
"Developing a product like the J2EE SDK is no small feat. Now you can see for yourself exactly what's involved. It's no small feat -- over 30 modules make up the SDK. You'll see the extent of the code and the number of developers involved."

Scott Violet writes
Matisse: one step closer to cross platform layout nirvana

"Matisse shows work that the NetBeans and Swing teams have been deeply involved in for close to a year (YOW!) now. Get the skinny on what lies underneath Matisse: NetBeans new forms builder."

Lance Anderson announces the
JDBC 4.0 Early Draft Review is available
The draft includes "ease-of-development features, automatic loading of java.sql.Driver implementations, enhancements to Connection and Statement interfaces to permit improved connection state tracking, and more"

In Also in
Java Today
, in the third part of an interview with's Bill Venners, Design Patterns co-author Erich Gamma talks about Design Principles from Design Patterns, focusing on two key principles: program to an interface not an implementation, and favor object composition over object inheritance. Gamma says: "You want to build to last. That's been an important theme of Eclipse development since we started. We have built Eclipse as a platform. We always keep in mind as we design Eclipse that it has to last ten or twenty years. This can be scary at times."

Serialization can be handy for persisting Java objects to disk, but it's quite limited in terms of searchability, robustness, and transactional integrity. Most developers reach these limitations and choose to use a database. But there is a middle way: "a prevalent system makes use of serialization... a serialized snapshot of a working system can be taken at regular intervals as a first-line storage mechanism." In Prevalence: Transparent, Fault-Tolerant Object Persistence, Jim Paterson shows how the Prevayler framework offers a compelling prevalence option for Java development.

In Projects and
the next Sun Developer Network Chat Session, What's New in the J2ME Wireless Toolkit , takes place Tuesday 6/14/05 at 9:00 AM PST (16:00 UTC). Join the chat to learn more about the J2ME Wireless Toolkit from lead engineer Ariel Levin, writer Jonathan Knudsen, and product marketing manager E-ming Saung.

From the Mac Java Community: the Apple Sample Code projects Graphics Performance Demo 2 and Graphics Performance Demo 3 illustrate slowdowns that can occur when animating on a non-AWT thread and when using XOR drawing. These demos discuss issues related to OS X's native double-buffering and offer solutions.

In today's Forums,
lucretius2 adds his thoughts on the thread Please add types uint, ulong etc...
"I think it was one of the great decisions in Java not to have unsigned types. In my experience in C++ they always lead to type mismatch problems when mixing signed and unsigned types, and even bugs. For instance, a classic bug that arises with unsigned types is this:
  for(uint n = max; n >= min; n--) {...} 
This looks innocent enough, and works in almost every case, but if min is 0 the loop will never terminate. If n is signed, as in Java, it always works (except in the highly unlikely case that min is Integer.MIN_VALUE)."

Kohsuke responds to JAXB object interfaces and implementations.
"How does that 3rd party library knows how to implement an interface generated by JAXB? Or is that interface implemented by a proxy? If you can touch that implementation, you can use JAXB annotations directly on those implementations. I can't think of an easy way to do this. Perhaps you can come up with an utility that copies the object field-by-field into JAXB objects?"

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.

Sun's J2EE in the open