Question about the life cycle of the war in Glassfish

What is the correct way to reinstall a new version of a running application in a glass fish? WAR works for me, and I made changes. I thought doing undeploy + deploy might be right, but glassfish (v3) often crashes when I deploy.

What is the correct way to reinstall a running application in a glass fish?

+5
source share
3 answers

There are several ways to reinstall a web application on GlassFish v3.

The method I would recommend is: 'asadmin redeploy --name foo --properties keepSessions = true foo.war' (or use directory expansion for a web application ...)

asadmin, .

, ... .

... , , , .

, jsp /.

keepSessions . , .

, , , ... , https://glassfish.dev.java.net/servlets/ProjectIssues, , .

+4

undeploy -:

  • classloader
  • JSP
  • HTTP-

? GlassFish ? .


GlassFish v3 redeploy:

asadmin redeploy --name mywar mywar.war

redeploy= undeploy + deploy, .

+2

, v3 , v2 , . , .

GUID asadmin ( ) ? ?

0
source

All Articles