glassfish v3 and java EE in production mode: what are the options to update a live web app?
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?
b) move in only the changed files , ie : .class files , jsp, etc... without undeploying before?
Solution 1:
Personally I use a maven plugin and a tool similar to jenkins to do my deploys to production but you can always do it by hand like this:
- Open the admin console (by default it's bound to port 4848)
- Choose "Applications" on the menu
- Next to the application you want to redeploy there should be a link labeled "Redeploy", click it.
- Choose new war (and options related to precompiling jsp's and stuff)
- Press OK
The new version of the application should be deployed after this process.
Hope this helps.