Monday May 16, 2011

How do you upgrade GlassFish ?

It's been about 11 weeks since GlassFish 3.1 was released and I was wondering how it's being adopted by the community. This was a much anticipated release as it combined the Java EE 6 innovation with enterprise ready features with support for clustering and high availability. As expected, the GlassFish download numbers improved as 3.1 release generated interest among the developers. More than the uptick in download numbers it was the trend of how the users are upgrading their deployments that caught my attention. While digging through the download data one interesting trend emerged suggesting most users prefer to upgrade their existing deployments using the built-in update center. I was surprised, very pleasantly, to see about 750,000 GlassFish installations were upgraded using the update center tool. It kinda makes sense since Update Center provides a convenient way to perform in-place upgrade of an existing installation. On the downside, the volume was too much to handle by our reporting system. The reporting tool crashed and remained that way for first couple of weeks as the system ran out of disk space, thanks to the large size of the log files.  Oh well, this is probably one of those problems which are nice to have in exchange for 3/4th million upgrades ;-)

GlassFish is known for ease-of-use for development and administration and the update center tool takes it to a new dimension. The magic starts with the desktop notifier notifying the user as soon as the new updates are made available on the server. Within a few clicks and following simple instructions one can upgrade to the latest and greatest distribution of GlassFish Application Server.

Tuesday Dec 15, 2009

Top 10 reasons for not using Glassfish v3

Sun announced the GA of Glassfish Enterprise Server v3 on Dec-10-2009. This is the first, commercially supported, Java EE 6 compatible application server in the industry.  While this release offers several compelling features it may still not be suitable to many enterprise developers out there.

Here are the top 10 reasons why someone should not consider using Glassfish v3 :

10. Portability and avoiding Vendor lock-in is not important - Standards and Portability are in the heart of Glassfish. Application Server All releases of Glassfish Enterprise Sever are Java EE compatible providing an ability to port your applications to any other Java EE compatible appservers and vice versa. Portability makes it easy for you to migrate to another vendor if you are not satisfied with the service or the support pricing. You may choose to ignore Glassfish as this is not critical for your business.

09. You cannot tolerate anything lazy - Glassfish v3 is re-architected from ground up and it's designed to be lean and lazy.
When the Application Server comes up, only the necessary modules are loaded. If you don't like the lazy loading resulting in minimal resource usage, like Memory and CPU, this Appserver is not meant for you.

08. Backward Compatibility is not your cup of tea - Since Glassfish adheres to Java EE standards and the standards require backward compatibility one can deploy their existing Java EE 5 Application on Glassfish v3. This is not relevant to customers who can afford to start from scratch every time a new version is shipped..

07. Prefer Close vs Open - In addition to being a great Application server, Glassfish is also an open source project and community. Glassfish was open sourced in mid 2005 and it
is available under dual license - CDDL and GPL v2 with CP exception. If open source and your organization don't get along your may pass Glassfish.

06. Your needs are static and won't ever grow - Thanks to the Modular and Extensible nature of Glassfish v3, it can grow and shrink to fit your needs. One can easily add new components on top of Glassfish v3 using the built in Update Center. Glassfish also makes it easier for you to layer any 3rd party frameworks and dynamic languages on top of it. If the needs of your Enterprise are not ever going to change, this may not be very critical for you, and you may refrain from Glassfish v3.

05. Your organization has abundant, highly talented, engineers - Glassfish comes with developer tools support for most popular IDEs like Netbeans and Eclipse. Glassfish is pre-integrated with Netbeans offering great "out of the box" experience with zero configuration. Sun also offers a plugin and a convenient bundle for Eclipse to provide Java EE 6 development support. In addition,
Glassfish supports directory deployment, incremental deployment, deploy-on-save, and the ability to retain the application sessions between deployments. All these features will surely enhance the developer productivity. Many developers love the "java -jar" option to start Glassfish without requiring Classpath settings. These features may not be valuable to you if there is no lack of engineers in your organization with right expertise.

04. Quality, Performance and Ease-of-Use is secondary - Glassfish application server is battle tested by Sun quality engineers and a vibrant Glassfish community making it very robust. It comes with several different tools to manage your deployments.
For administration and management, GF offers a rich command line interface and a web based Admin Console. Glassfish v3 adds support for REST Interfaces also for administration. Integration with ANT and Maven also makes it more developer friendly. With Maven plugin one can start and stop Glassfish in embedded mode. GlassFish v3 startup times are over twice as fast as v2 and in the case of the Web Profile offering, nearly three times faster. Deployment and redeployment are also screaming fast. Feel free to disregard this if Performance and Usability is not critical for your business.

03. Your engineers enjoy maintaining complex deployments manually -
All distributions of GF contain a built in Update Center to manage the existing installation and to add new components. This tool also provides Proactive notification of product updates and patches.  The tool provides a rich UI and CLI, it's nicely integrated with the GF Admin console also.With the integrated Update Center one can easily update/Upgrade their existing deployments of Glassfish. It's also possible to add new components like JRuby, Tutorials, Enterprise Monitor etc. using the Update Center.

02. Your company is sitting on a pile of money - You're fortunate to work for a company which is rich and thriving in this economy and saving money is not a priority. Glassfish comes with a very affordable subscription offering which can help manage your risks within desired SLAs without spending a fortune. The Glassfish Subscription also comes with
an Enterprise Manager which is a set of advanced tools for optimizing performance, managing and monitoring the deployments.

01. Your mantra is "Less is More" - You meditate regularly, don't expect a lot from your Application Server and you can live with whatever come your way.

If you remain skeptical and your profile does not fit any of the above try Glasfish v3 for yourself, it'll only takes a few minutes of your precious time.

Glassfish Enterprise Server v3 and Java EE 6 SDK  can be downloaded from :

Thursday May 15, 2008

Chronicles of GlassFish @JavaONE 2008

The Planning

For Java developers JavaONE is the biggest festival of the year and brings a lot of excitement and fun. Many product and technology releases are aligned with this event. No matter how good your planning is, you still have to go through many firedrills just before the event. Just like any other JavaONE, this year also it all started with planning, planning and pre-planning. You may be surprised to know that the planning for a JavaONE starts as soon as the previous JavaONE is over and it intensifies as we get close to the start date. For most of us, as participants, it starts when we see the invitations for proposals which usaully happens a few months before JavaONE. The activities include reviewing all the submissions and putting them under the right tracks. I have closely watched Linda DeMichiel going through this activity as the lead for Java EE track lead.  The GlassFish community did an awesome job this year making it one of the most impactful JavaONE so far! Finishing the GlassFish V3 TP2 was no Child's play especially with addition of last minute features like OSGi support. The entire team pulled it together under the leadership of Jerome Dochez and Abhijit Kumar. A lot of hard work went into creating the demos to showcase the cutting edge technology.


The UnConference

Isn't it ironic that a big conference like JavaONE kicked off an unconference :-)

This is the first time GlassFish team organized an unconference lead by Alexis Moussine-Pouchkine. It started with people jotting down the topics they were interested in discussing on a white board. The topics varied from Community development, Business aspects to deep dive technical discussions with experts. Many of the technical questions were around recently added OSGi support in GlassFish V3. Jerome did an excellent job in fielding these questions. Most people participating in the unconference were very familiar with GlassFish and using it for development or production environment. It was evident that GlassFish has been widely adopted and the community has grown significantly since the last JavaONE. Bill Shannon and Roberto led the discussion on Java EE 6 roadmap and features. In some cases it was hard to follow the conversation because of large size of the hall and poor acoustics, a lesson learned for the next time. The unconference was followed with the GlassFish party in the evening at Thirsty Bear where many community members had another opportunity to mingle and have their questions answered straight from the domain experts.

Unconference Agenda


This was the second year we had a CommunityONE day before JavaONE which was an instant hit. Thank God, we we had lot more real estate this year to accommodate the large turnout. During the CommunityONE keynote, Rich Green announced the availability of OpenSolaris demonstrating some cool features on the stage, it was impressive to see how one could hotswap a damaged hard drive without losing any data. GlassFish V2 is also available as IPS packages which can be downloaded from the OpenSolaris repository! After the keynote we had a general session on GlassFish which was one of the popular community sessions. Both, Jonathan Schwartz and Rich Green came on the stage and  appreciated the community's  effort and answered  questions from the audience. Eduardo started the session with the history of Sun Application Servers and how GlassFish was born which was followed up with the future direction of the community and product. Jerome Dochez unveiled GlassFish V3 TP2 with some cool demos including fast startup time, hot reloading of classes. GlassFish V3 is the next generation Application server with following features like Embeddability, Extensibility, Modular Architecture, OSGi Support,Java EE 6 compatibility and Ease of use. For those who need a robust platform today to deploy enterprise applications, try the GlassFish v2 or Java EE 5 SDK with great performance and best in class Adminstrative/Development Tools.

 I spent time on the GlassFish pods at regular intervals which were always crowded by community members and the developers who couldn't wait to get their questions answered and learn more about GlassFish. Satya Dodda's team launched a new GlassFish Quality Community which generated huge interest from the community members and University Students attending the conference. Later that afternoon I attended Tim Quinn's session on JavaFX and AppClients which was full and audience was very engaged throughout the talk.

I also had an opportunity to spend quality time with many non Sun community members who have been nurturing the GlassFish community for a long time. These include Jason Lee, Julien Ponge and Wonseok Kim. Jason is the second most active contributor on JSFTemplating project and and a very active Mojarra contributor. Julien contributed IzPack based GUI installer for GlassFish. Kim works at TmaxSoft and has been contributing to the Persistence module in GlassFish. Kudos to these and all other community members for making GlassFish such a vibrant community!

JavaONE: The Main Event

Long lines outside Moscone were the strong indicators that this JavaONE was going to a huge success. Everybody was anxious to hear what Rich Green, Jeet Kaul, Bob Brewin and other leaders had to say about the future of Java. The stage was all set with loud music and dance making the environment very lively. James Gosling could not resist doing his regular stunts and shooting T-Shirts towards the audience. Like previous years I was not one of the lucky people to catch the shirt :-)

Another attraction of the day was Neil Young who came on the stage and shared his passion and how Java is helping him creating a high tech library of his albums. The Main theme of the JavaONE 2008 was Java+You with consumer focus reminding us how Java touches our everyday lives. 


Roberto and Jerome did a fantastic job presenting the Java EE6 and GlassFish V3 during Bob Brewin's keynote. The demos worked flawlessly and resulted in big instant applaud, many people were impressed to see the hot reloading of class in GlassFish without having to redeploy the Application. GlassFish team is proud to have engineers like Tim who believed in it and demonstrated it can be done while many others were skeptical about the feature.

Shreedhar Ganapathy and Arun Gupta delivered a bonus course on GlassFish as part of JavaU activities. Unfortunately, I missed this event due to a conflict but I was told it was a great success with room full of developers wanting to know all about GlassFish. Ken Paulsen and Anissa Lam did a great job in presenting a hands on lab on building GlassFish plugins which was a great opportunity for developers learn how to create the plugins for GlassFish V3.

Abhijit and I delivered a BOF on GlassFish on Tuesday evening. The audience was fully engaged throughout this session, the most popular segment of the event was the GlassFish Jeopardy. Unfortunately, the time for this BOF was too short and we had to cut off the Q&A session which we ended up continuing outside the room. We got very useful feedback on the GlassFish which we'll use while shaping up the future of GlassFish.


This seemed to be the silent theme of the JavaONE 2008. The GlassFish buzz was everywhere starting the day one with Rich Green's mention of GlassFish adoption in the keynote demo. More than 4.5 million developers had downloaded GlassFish within last 12 months! The number of active users is on the rise as more and more developers find the value in using GlassFish, where they can get top of the line enterprise features at open source price.

I was amazed to see the traffic on GlassFish pod even though it was not on a prime location. It was a pleasant surprise to see many large enterprises using GlassFish already or in the process of deploying. Among many passionate people manning the booth, there were a couple of people who went the extra mile and enjoyed interacting with the GlassFish community members and customers throughout the event. These two people were none other than Judy Tang and Nazrul Islam, Nazrul and his team made a huge contribution towards this JavaONE!

The final day of JvaONE started with James Gosling's toy show. My favorite device of the event was Livescribe Pen. I couldn't believe the features packed in this small gadget, it's great toy for student. I was impressed to see the demo of Visual VM which can be a great tool for developers using GlassFish and Netbeans. Visual VM is a project that aims to provide monitoring and profiling tools for the JVM with a GUI. It was demonstrated how one can easliy attach a remore instance of GlassFish to Visual VM and monitor various parameters of running Application Server.


No JavaONE can be complete without evening parties that are full of fun. This JavaONE was no different in this respect, it's too much fun to handle for a person like me.  Sunday was the GlassFish Party at Thirsty Bear followed by a reception on Monday hosted for the Java licencees. There a Solaris party also on Monday at Moscone which I missed but people tell me it was ton's of fun like other thrown by Jeff Jackson. Tuesday was "The" party at XYZ bar in hotel W which is a regular feature of JavaOne for us. The bar was packed with no room to even walk from one end to another, many of us had to wait outside for hours. It was amazing to see how people's personalities can transform only after a couple of drinks! Thursday was the official JavaONE party with popular music from Smash Mouth. The party was hosted in the open (Yerba Buena Park) this time and not indoor like previous years. For me it was too cold to enjoy the music, we tried eating ice cream hoping it'll bring equilibrium in temperature inside the body and outside :-) The outside party was beneficial to the local business as many attendees had to buy jackets and pullovers to stay warm! For me the dinner I had with my team prior to the party was lot more fun!!


My Top Tens of JavaONE 2008:

The Final Word

JavaONE is once in  a year opportunity where both vendors and developers converge to meet each other and share ideas. I couldn't have asked for a better JavaONE for GlassFish than we had this year. The next JavaONE starts on 02-June-2009, I can't wait go through this awesome experience all over again...

Thanks & Congratulations to the entire GlassFish community for this Achievement!!

More pictures of JavaONE 2008 can be found at :
To track the the latest developments in GlassFish community throughout the year check out The Aquarium.

Java EE developer resources : and



GlassFish Application Server: Fast, Easy and Reliable


« July 2016