I already did this, so here my how to:
1. In cartridge.xml add <property reference="ejb-jars"/>
2. In namespace.xml add
<property name="ejb-jars" required="false">
<default></default>
<documentation>
The ejb jars to be included.
</documentation>
</property>
(I did this in project group JDBC?)
3. In persistence.xml.vsl add this (below <jta-data-source>)
#if ($stringUtils.isNotBlank($ejb-jars))
#set ($ejb_jar_array = $stringUtils.split($ejb-jars,','))
#* *##foreach ($ejb_jar in $ejb_jar_array)
#* *##if ($stringUtils.isNotBlank($ejb_jar))
<jar-file>${ejb_jar}</jar-file>
#* *##end
#* *##end
#end
4. In the andromda project add this in the ejb3 cartridge namespace
<property name="ejb-jars">${ejb-jars}</property>
Is this automatically generated if a new andromda project is created using andromdapp?
5. Using maven 2 add this to your pom.xml (a comma separated list of the jars):
<ejb-jars>../lib1.jar,../lib2.jar</ejb-jars>
Hope I didnt missed anything
Thanks for the fix.
I have applied to CVS.
Keep in mind, I changed the property from ejb-jars to jarFiles.
This is not something the andromdapp generator would need to generate. It will be available in the namespace doc and should be manually added to the andromda.xml if required.