-
1. Re: Single Deployment Unit from multiple files inside a zip
rareddy Nov 27, 2009 9:58 PM (in response to rareddy)I am not sure how the "StructureDeployer" works, however once I created a structure for my version of the ZIP file, it works as I expected. The deployer invokes once for "a.xml" and once for "b.xml" then invokes merge for the "zip" metadata iteself with metadata from a.xml and b.xml files.
-
2. Re: Single Deployment Unit from multiple files inside a zip
emuckenhuber Nov 28, 2009 4:54 AM (in response to rareddy)"rareddy" wrote:
I am not sure how the "StructureDeployer" works, however once I created a structure for my version of the ZIP file, it works as I expected. The deployer invokes once for "a.xml" and once for "b.xml" then invokes merge for the "zip" metadata iteself with metadata from a.xml and b.xml files.
The StructureDeployers determine classpath and metadata locations of a deployment mostly independent of the file extension. The problem with providing a StructureDeployer for ".zip" files is that you modify the behavior for all ".zip" files, which shouldn't be done.
Therefore i'd rather suggest that you move your deployment descriptors to the "META-INF" folder, which is the standard metadata location or maybe provide your own extension. -
3. Re: Single Deployment Unit from multiple files inside a zip
alesj Nov 28, 2009 7:16 AM (in response to rareddy)Like Emanuel suggests, metadata/config files normally go to META-INF
(or WEB-INF in case of .war deployments).
If that doesn't suite you, instead of your own StructureDeployer,
you can simply declare your custom structure via jboss-structure.xml:
* http://www.jboss.org/community/docs/DOC-13178 -
4. Re: Single Deployment Unit from multiple files inside a zip
rareddy Nov 29, 2009 5:08 PM (in response to rareddy)Actually, the extension I am using is ".vdb", which is zip file underneath, so I would not be altering the original behaviour. I do like Ales's suggestion of using the "jboss-structure.xml" file, I will try to use that.
Thank you for the replies.