Instead of deploying a packaged archive (.war) you can point GlassFish to a directory and let it pick up and deploy the application from there.
You can do this by using the command asadmin deploydir path_to_app_dir.
This has the following benefits:
The directory you point GlassFish to should have the following structure:
–|myproj
–|–|web-sources (JSPs, facelets, css ... subdirectories are possible)
–|–|...
–|–|–|WEB-INF
–|–|–|–lib
–|–|–|–classes
–|–|–|–web.xml
–|–|.reload
The trick is to configure your IDE/Environment, so that you can work directly on the above structure...
By touching '.reload', you can force the application to be redeployed.
No comments:
Post a Comment