With GlassFish v2 (SJS Application Server 9.1) now released, almost every customer I meet asks about the migration process and whether we have tools to help. My answer is usually two-folds: (1) AVK, (2)
asupgrade (from an older version) and migration tool (coming from another application server or from Tomcat). The later part has been covered recently (at least
asupgrade here and here) but most people never heard about of the AVK (Application Verification Kit).
The AVK is not a GlassFish tool per say. It’s a free tool to assess the level of portability of J2EE or Java EE code. It uses static and dynamic analysis of an application code to produce a report highlighting the problem you could face trying to move to another application server. It comes with ANT tasks so you can integrate this in your build process and even have the reports be part of your SCM tool to understand when non-portable code was introduced. Some more details here. Note that even if you use the latest AVK tool for Java EE 5 you can still check for J2EE 1.4 compliance using
verifier --mode 1.4 (thanks to Srikanth for the hint).
AVK is good for your applications and software vendors should probably also use this as they often times have no interest in having a mono-AS support strategy.