Wednesday Apr 18, 2012

Rolling Upgrades with GlassFish Server

Learn how Jerome Lafosse utilizes application versioning to facilitate application upgrades on GlassFish Server.[Read More]

Sunday Mar 04, 2012

Upgrading to GlassFish 3.1.2

Now that GlassFish 3.1.2 has been released, you may be wondering about what your upgrade options are. As a reminder, this release is highly-compatible with previous ones and should be a target for any existing GlassFish user.


Technically-speaking version 3.1.2 is also known as 3.1.1-patch#4 and 3.1-patch#5, thus making the migration path pretty obvious for 3.1. and 3.1.1 users.

We are not forgetting users of older versions with these additional supported upgrade options :
• 2.x → 3.1.2: side-by-side install + domain upgrade
• 3.0.x → 3.1.2: side-by-side install + domain upgrade or update via update-center + domain upgrade

For a 3.1.x → 3.1.2 upgrade you can to a side-by-side install, update via update-center with no required domain upgrade (configuration is compatible with 3.1.x).

The upgrade of v2 clusters can be done with :
• side-by-side install of 3.1.2 on DAS and instance hosts
• Migrate v2 domain to 3.1.2 on DAS host + recreation of instances

In-place upgrades are not supported through the installer though. For all the details, make sure you read the dedicated "Upgrade Guide" documentation.

Wednesday Mar 09, 2011

GlassFish 3.1 : auto-upgrade or not to auto-upgrade?

If you have a GlassFish 3.0.1 installation you probably have been notified that you can update this installation to the newly released GlassFish 3.1 using the update center.

This will do an In-Place Upgrade with the new bits (some 75MB pulled off of the repository for the open source edition for instance).

You can of course also chose a Side-By-Side Upgrade. Both approaches are documented in the Upgrade Guide.


If you've installed GlassFish 3.0.1 as part of a NetBeans bundle such as 6.9(.1) you probably should not blindly update and rather use the recommended NetBeans 7.0 beta 2 for GlassFish 3.1. To stop the pop-up notification you can also use the Update Tool to disable it altogether, leaving you to manually check for updates.

If you intend to stay with 3.0.1, keep an eye on the GlassFishForBusiness blog for associated patch updates.

Wednesday Jan 20, 2010

Upgrade to GlassFish v3 - effortlessly


While GlassFish v3 offers a lot of new features (Java EE 6 and OSGi-based modularity being the most obvious ones), we take compatibility very seriously and want your existing applications currently running in GlassFish v2.1.x or GlassFish v3-Prelude to run unmodified in our latest release.

To that effect GlassFish can detect earlier versions of 'domain.xml' (the all-in-one config file for GlassFish) and upgrade it for you (when you start GlassFish v3 as one option). Please read Bobby's recent post for more on this.

The official documentation can be found in the upgrade guide. That document also covers the 'asupgrade' graphical tool (which ships with the appserver but which wasn't there in Prelude). If you want more technical details on the changes and why they were required, please read this piece. Remember that it was not supported to edit domain.xml by hand back then. It's still not supported today, but who would want to do that when you have 'asadmin', the web console, and now the RESTful API?

As a reminder, when we released GlassFish v3 on December 10th 2009 (together with Java EE 6), we had a blog storm with many many interesting posts about everything-GlassFish v3 which are summarized in previous entries: Part I and Part II.

Expanded from @glassfish.

Wednesday Feb 28, 2007

Updating Your GlassFish Installation

GlassFish Upgrade Story

Whether you like the cutting-edge functionality of the GlassFish milestone and nightly builds at or the rock-solid stability of Sun's GlassFish-based distributions, there is always something new to try. But what if you want to upgrade your existing GlassFish installation without losing your existing configuration settings?

GlassFish has a built-in "asupgrade" tool which does just that.

Shalini has put together a nice tutorial showing how to use this tool. As Shalini shows, it supports both a GUI and CLI interface and allows either in-place or side-by-side upgrades.