i'm on a project which uses one deployment descriptor per bean. each bean is
packaged in its own jar file for deployment.  i'm using xdoclet to generate
the remote/home interfaces nicely.  i'm now beginning to use it to generate
the deployment descriptors.  i have the following task to generate the
deployment descriptors:

        <ejbdoclet verbose="on" ejbspec="2.0"
destDir="${basedir.webapp.web-inf.src}">

            <fileset dir="${basedir.webapp.web-inf.src}">
                <include name="**/Event*Bean.java"/>
            </fileset>

                        <deploymentdescriptor
destinationFile="{0}-ejb-jar.xml"
destDir="${basedir.webapp.web-inf.src.gen}"/>
                        <weblogic destinationFile="{0}-weblogic-ejb-jar.xml"
destDir="${basedir.webapp.web-inf.src.gen}/"/>

        </ejbdoclet>

this creates a <beanName>-ejb-jar.xml and a <beanName>-weblogic-ejb-jar.xml
file for each bean that matches the pattern.  the issue is that the
generated deployment descriptors contain information related to all the
beans.  each file that is generated is exactly the same.  this uses a patch
submitted by Chris McCarthy to handle the {0}-weblogic-ejb-jar.xml notation
for this issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=X
DT-626.

how can i get each deployment descriptor to be "per bean".  only contain the
information that is in that specific *Bean.java file? a not very good hack
that i'm using is to have separate tasks for each bean, and have the fileset
include only each specific bean.  this obviously isn't good when we're
adding beans.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to