Tuesday, September 17, 2013

To Reload Code or Deployment Descriptor Changes in Sun GlassFish Enterprise Server 2.1

  • Create an empty file named .reload at the root of the deployed application or module.

    For an application:
    domain-dir/applications/j2ee-apps/app-name/.reload

    For an individually deployed module:
    domain-dir/applications/j2ee-modules/module-name/.reload
    
    

  • Explicitly update the .reload file’s timestamp (touch .reload in UNIX) each time you make changes.