Advantages of deploying a packaged file: everything is in a single file; you 
can deploy using jmx-console (or twiddle).

Advantages of deploying an exploded directory: you can easily change/add 
various files (such as JSPs, CSS, HTML) and have them picked up automatically 
without redeploying the application (note that this does not work with class 
files); JBoss does not have to unpack the files into the tmp directory.

Yes, the exploded directory must have the same suffix as the packaged file.  
The main deployer user uses suffix to determine what kind of directory it is 
and then invokes the correct deployer (actually, it asks each deployer is it 
recognizes the file, and the first that say 'yes' gets to deploy it).  Other 
than that, the contexts are the same as if you had unzipped the packaged file.

Yes, if you have to be careful if you switch between exploded and packaged, 
because a simple copy/overwrite will not work.  In my Ant script, I typically 
attempt to delete both the file and directory before copying over whatever it 
is I am deploying.  Unless I am always doing exploded, in which case Ant's copy 
task copies only the updated files.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992467#3992467

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992467
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to