Glassfish v3 comes with compatibility feature: asadmin deploy --property compatibility=v2 foo.ear
The problem: this feature is only available from the CLI. There should be global e.g. setting (in
domain.xml) and accessible from the admin UI (EJB container node) to be set persistently. A local setting,
e.g. in the deployment descriptor: sun-*.xml .
Reason: a majority of GF v2 projects is using Hudson + Maven / Ant for deployment. Most of the projects,
are not 100% Java EE compatible but can be deployed to GF v2 without any problems. The migration even
of such projects should be as smooth, as possible.