Hi Mark, I suppose you could create the fileset outside the <ejbdoclet> task, use ant-contrib's <foreach> to iterate over the sources and generate separate files, and then rename the output. However, I haven't done this before. We are using relationships, and thus all the beans need to be in the same JAR.
David Harkness Sony Pictures Digital Networks (310) 482-4756 -----Original Message----- From: Mark Lybarger [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:17 AM To: '[EMAIL PROTECTED]' Subject: RE: [Xdoclet-user] ejb-jar naming convention Now that I'm generating sources and deployment descriptors, how can i get my ejb-jar.xml named Sample-ejb-jar.xml and Sample-weblogic-ejb-jar.xml for a SampleBean.java file? -----Original Message----- From: COCKLE Timothy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:49 AM To: [EMAIL PROTECTED] Subject: RE: [Xdoclet-user] ejb-jar naming convention I am also new to all this... I think your generation problem is the same on I had when I fist started. Are you sure you have the source dir correct? Mine is set like this: <ejbdoclet destDir="${src}" ejbspec="2.0"> <fileset dir="${src}"> <include name="testXdoc/*.java" /> </fileset> where the .java files are in ./testXdoc/ (relative to the build.xml) Also I found Chapter 2 from the EJB cookbook (http://www.manning.com/sullins2/) to be very usefull. Luckly it is also a sample chapter so have a look at http://www.manning.com/getpage.html?project=sullins2&filename=chapters.h tml Good luck Tim -----Original Message----- From: Mark Lybarger [mailto:[EMAIL PROTECTED] Sent: Mon 04/08/2003 20:15 To: '[EMAIL PROTECTED]' Cc: Subject: [Xdoclet-user] ejb-jar naming convention first, i'm new to xdoclet. trying to get it integrated into our project. we're using a naming convention for our ejb-jars such as Sample-ejb-jar.xml and Sample-weblogic-ejb-jar.xml. This is needed by the ejbjar task to compile the stateless session beans quickly and easily. is there a way to get these deployment descriptors to have this naming convention? also, i've been playing with the ejbdoclet task for a while and can't get it to generate remote/home interfaces. Here's my ant task and the ejb class i'm trying to work with. any ideas would be most appreciated! <target name="ejbdoc"> <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="ejbdoclet.classpath"/> <ejbdoclet verbose="true" ejbspec="2.0" destDir=\Source\WEB-INF\src\gen-src"> <fileset dir="${ejb20_source}"> <include name="event/EventSubmitBean.java"/> </fileset> <remoteinterface/> <homeinterface/> <deploymentdescriptor/> </ejbdoclet> </target> import javax.ejb.*; /** * This is a teller bean. It is an example of how to use the XDoclet tags. * * @ejb.bean name="Teller" * description="Teller example bean" * jndi-name="ejb/bank/Teller" * type="Stateless" * * * @author <a href="mailto">mark.lybarger</a> */ public abstract class EventSubmitBean implements SessionBean { /** * Transfer money between accounts. * * @ejb.interface-method view-type="remote" */ public String helloWorld() { return "HelloWorld"; } /** */ public void ejbActivate() { } /** */ public void ejbPassivate() { } /** */ public void setSessionContext(SessionContext ctx) { } /** * Remove * * @ejb.transaction * type="Mandatory" */ public void ejbRemove() { } } --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ 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.502 / Virus Database: 300 - Release Date: 7/18/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
