Search This Blog

2009-07-10

Top Reasons for Glassfish V3

I have seen so many large Java projects where they used WebSphere Application Server.
Is there a link between the size of a project and the heavyweight of an application server?
The more people that are developing - the longer the server-start-time or deployment time?

Development Roundtrips beginning with cleaning up your workspace, rebuilding and redeploying your application can take more than 5 minutes, even if you just want to see some changes on the front end.

Switching between implementing with Glassfish and Websphere makes me feel like living in two different worlds. Future and Past.
However, I see that it is still difficult to convince a company or the decision makers, to use glassfish. Many times these decisions are not made for the developers sake and though for the success of a project. But if you are one who can choose the application server, consider these benefits, written down in the following blog:
I know, Glassfish V3 is not yet ready for productive use, but i also know how long it takes to make a decision :)


2009-07-05

Real World Java EE Patterns - Rethinking Best Practices

Adam Bien is a Java Champion and a well known author of a number of books and articles in the field of Java technology. In his most recent book, Real World Java EE Patterns - Rethinking Best Practices, Bien describes the development and main concepts of Java EE and introduces several best practices to create an easy and maintainable lean architecture.

The first part of the book covers the history and the Java EE core concepts. It is followed by the biggest part of the book, the patterns, which are divided into three categories: the business tier, the integration tier and infrastructural patterns and utilities. Finally Adam Bien rounds off the book by providing a discussion about pragmatic Java EE architecture, where he compares two approaches: service- and domain driven design styles.

I recommend this book to everyone who develops enterprise applications with Java. It covers the author’s real world experience with both theoretical background and technical examples. The patterns described in this book are published online at Project Kenai and discussed on Adam Bien’s blog.

In the past years J2EE has apparently often led to an unnecessary bloated architecture, consisting of a variety of layers and patterns, which were not only hard to test but also tough to maintain. This book offers the possibility to Rethink. Both experienced J2EE developers/architects and Java EE newbies with basic Java skills will benefit from this book. Due to a brief history on J2EE you get a great summary about the development of Java EE and you understand why some developers don’t talk positive about it. Particular mention deserves the first part, the brief history and the core concepts. Information about Java is virtually everywhere in the world wide web. The challenge is to bundle it and this is something that Adam masters perfectly. The patterns provide guidance for a lightweight architecture. Adam demonstrates the respective problem, the forces which led to this problem and offers different solutions with the help of code samples. I really like the fact that there is a testing example for every pattern, as testing is an inalienable part of software development.

2009-07-04

JavaEE server comparison and statistics

Hi guys,
in my last post I mentioned the great startup and deployment times of glassfish. The following article "JavaEE Containers - Heaven or Hell?" presents some charts.
The following app servers have been compared:
  • Tomcat
  • JBoss
  • Weblogic
  • IBM Websphere
  • Glassfish
  • Jetty
  • Oracle OC4J
  • Coucho Resin
Keep in mind that not every listed application server supports all the features within the JavaEE specification (e.g. EJB 3.0, JPA, etc).
In my opinion I only see JBoss, Weblogic and Websphere as comparable JavaEE products. And compared to them...glassfish made the first place :)
In order to compete with Tomcat, Glassfish V3 Prelude offers a modular, osgi based development and deployment platform. The first server start without any application will only conatin a lightweight webcontainer and takes about 3166ms. (for more details, look at this). If you want to deploy an EJB application, glassfish V3 will automatically add/load the EJB container.
You can already download and work with a V3 prelude version, but in order to use it for production, let's wait for the final release of V3.

GlassFish Clustering In Under 10 Minutes

John Clingon, the glassfish group product manager at Sun Microsystems (sooner or later Oracle, the deal is still pending) did a very nice presentation of how to
  • download glassfish (it is V2 ur2, if you are trying to do the same, i recommend downloading V2.1)
  • install glassfish
  • setup a cluster with two instances on a local macbookpro
  • deploy a sample application
  • and test the application by stopping one instance
He managed all of this in just about 10 minutes. Awesome!


I have been working with glassfish since nearly 2 years, and I can completely recommend it. No other java application server is so close to the latest technical developments. Great startup and deployment times (I will give you some data in another post) and an easy to use web based administration console. If you work with the Netbeans IDE, you will be able to do agile javaEE development at its best.
However, keep in mind that JavaEE development needs some RETHINKING. Forget about your old J2EE habits and patterns and start reading this book.

2009-06-24

Application Server Trends among Open Source Developers

Ohloh, now aquired by Sourceforge,performed a custom data analysis to determine the adoption of application servers among open source developers.
  • Of Java new project starts that target Java EE, GlassFish is the leading application server for new project starts with

    73% of all Java EE projects.

  • Of Java projects that target Java EE, GlassFish is the leading application server with just over 50% of projects targeting GlassFish

The pdf paper has some nice graphics illustrating the development of glassfish from 2004 until now.

2009-06-17

The Crisis of Credit

The amazing visualization of The Crisis of Credit makes me publish my first business related blog entry. Why not teaching IT related topics like this? Does anyone know which tool to use if you want to create something like this?

2009-06-06

Java One 2009

Unfortunately, I wasn't able to participate at the java one conference in San Francisco this year. But due to all of the bloggers and especially twitter it wasn't difficult to keep in touch.
This page shows all the real time tweets for java one.
Within the next few days and weeks i will look at the topics, which played an important role at java one, such as
Last but not least, I found a nice blog entry which explains how javaEE, spring and a OSGI Bundle, all work together with GlassFish V3.
So there's enough to read and code. Have fun!