From: Vance K. <va...@us...> - 2006-08-11 05:51:08
|
User: vancek Date: 06/08/10 22:51:08 Modified: andromda-ejb3/src/site/fml faq.fml Log: add ear rename faq Revision Changes Path 1.4 +29 -0 cartridges/andromda-ejb3/src/site/fml/faq.fml Index: faq.fml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/fml/faq.fml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- faq.fml 1 Jul 2006 03:07:39 -0000 1.3 +++ faq.fml 11 Aug 2006 05:51:08 -0000 1.4 @@ -63,5 +63,34 @@ </p> </answer> </faq> + <faq id="how_to_rename_ear"> + <question>How can I rename the EAR file?</question> + <answer> + <p> + In more complex circumstances, you may want to rename your EAR. For JBoss AS, you may have + the prefix sorter deployer enabled, in which case you want to prefix a non-negative digit to the EAR. + There are a couple of pitfals you need to know about to get this working. + </p> + <p> + In your top-level POM, in the properties section, create an entry to hold the prefix, if you required + a prefix. You could name it <b>application.deploy.prefix</b>. + </p> + <p> + In your app folder POM, modify the <code>finalName</code> element under the <code>build</code> + element to reflect the prefix above. It would read + <code>${application.deploy.prefix}${application.id}-${pom.version}</code> + </p> + <p> + You must also modify the <code>targetPath</code> element in the <code>resource</code> section corresponding + to the <b>src/main/application</b> <code>directory</code> element. This would read + <code>../${application.deploy.prefix}${application.id}-${pom.version}</code> + </p> + <p> + Finally, make sure you rename the <code>jndiNamePrefix</code> property in the ejb3 namespace of your + andromda.xml application descriptor to reflect this change. The <code>jndiNamePrefix</code> would read + <code>${application.deploy.prefix}${application.id}-${pom.version}</code>. + </p> + </answer> + </faq> </part> </faqs> |