I am building a web app using java EE and glassfish v3. I want to move it to production mode soon, however i have zero experience with using glassfish in production, i would appreciate if you give me some guidance about how to approach the following scenario:

say i have deployed the web app using admin console pointing to the .war file. But what if i want to update this live application, do i need to :

a) undeploy --> build new war file (with updates) --> paste the war file to the app folder -->redeploy?

thx a lot. Two questions:1- is it more efficient to use maven or do it manually? or is it the same?. 2- I read some articles online that redeploy leaks some old sessions , is this true?
–
shadescoJun 9 '12 at 14:12

1) It's just as efficient. What the maven plugin does is use the command line version of what I just sent you. The advantage for us is to have a central place where the team can run build/deploy jobs for the development and production environments.
–
KhaiJun 9 '12 at 23:36

2) I know there are some classloader leaks that lead to OOM on the PermGen memory area but I'm not sure if they're directly related to Glassfish or commonly used libraries or just circular references that keep the GC from unloading those classes. Don't know what you mean about session leaks but one of the reasons to use redeploy instead of undeploy/deploy is being able to keep the schedulers and sessions from the previous deploy untouched (if you choose to do so).
–
KhaiJun 9 '12 at 23:39