I've patched the xdoclet source to use this convention when using destinationFile="{0}" for creating deployment descriptors. I think it might be cleaner to add an attribute to the deploymentdescriptor command to remove the bean name from the ouput. Are there any thoughts on this? Something like:
<deploymentdescriptor removeBean="true" destinationFile="{0}-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src}"/> I still have the issue with xdoclet where i have to filter only the ejb that i want the deployment descriptor created for. Otherwise, the deployment descriptors all contain information about all the ejbs. I want one deployment descriptor per bean. Thus I currently run ejbdoclet with a subtask of deploymentdescriptor per bean that i have. Not exactyly clean. I haven't yet figured out how to resolve this, _yet_. -----Original Message----- From: Mark Lybarger Sent: Wednesday, September 24, 2003 7:31 AM To: '[EMAIL PROTECTED]' Subject: RE: [Xdoclet-user] deploymentdescriptors - file naming convention Ultimately, yes, the deployment descriptors get named as ejb-jar.xml in the META-INF directory for the deployed ejb. According to the ant documentation there's a descriptor naming convention which names the deployment descriptors BeanName-ejb-jar.xml and BeanName-weblogic-ejb-jar.xml. This convention is also in an article at onjava.com as well as other places: http://www.onjava.com/pub/a/onjava/2001/06/25/antejb.html Our project moved to this convention when we moved from having an individual build.xml for each ejb. Those build files manually jarred up the classes and called weblogic's ejbc using the ant java task. Doing a complete rebuild was very time consuming. We moved to using the ejbjar task, but our initial implementation of the task used the BeanName naming convention and worked nicely. I don't think it's that uncommon of a naming convention, as I've seen other groups in our company using this convention. Since we only have about 17 ejbs, it won't be such a challenge to switch to the ejb-jar.xml naming convention. That said, it would be really nice if the deploymentdescriptor task could be more flexible in both the filenames that it uses for creating the descriptors. The ejbjar task provides quite a few different naming conventions. It would also be nice if the deploymentdescriptor task would be able to automatically generate one deployment descriptor be ejb and not one descriptor per all ejb's it finds in the fileset given to the ejbdoclet task. I don't think it's that uncommon for projects to deploy one jar per bean to their container. -----Original Message----- From: Andrew Stevens [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 8:00 PM To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] deploymentdescriptors - file naming convention On Tue, 2003-09-23 at 16:28, Mark Lybarger wrote: > I've been looking for a way to get around this using standard ant tasks, but > I'm not sure if it's workable. > > i'd like to give the output of the deploymentdescriptor task to be just the > ejb-name, not > <ejb-name>Bean-ejb-jar.xml, etc. This is because the ejb jar files that we > deploy are named beanName.jar and not beanNameBean.jar. The ejb-jar task > lets me specify to use the ejb-name from the deployment descriptors when > creating the ejb jar file, but when i use that it's looking for deployment > descriptors name ejb-jar.xml (without the bean name as part of the file). > here's my current deployment descriptor task. > > <deploymentdescriptor > destinationFile="{0}-ejb-jar.xml" destDir="${basedir.webapp.web-inf.src}"/> The deployment descriptor should *always* be named ejb-jar.xml, and be found in the /META-INF directory in your ejb jar. That's what the EJB spec says, and they're unlikely to deploy correctly otherwise. That's why the default destinationFile value is "ejb-jar.xml" for that subtask. Why would you want to do any different? Or have I misunderstood your question? Andrew. ------------------------------------------------------- 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 --- Incoming 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 --- 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 --- Incoming 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 --- 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