sorry for the cross post. i sent this to xdoclet-devel and didn't see a response. if
anyone here has an idea, it would be most appreciated.
-----Original Message-----
From: Mark Lybarger
Sent: Thursday, December 18, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-devel] trying to generate one ejb-jar.xml file per
bean...
i have a bunch of stateless session beans. each has their own ejb-jar.xml file with a
naming convention of Account-ejb-jar.xml where Account is the bean name and the name
the deployable jar file will have.
i'm working from a copy of xdoclet 1.2b4.
if i have the following ejbdoclet task to create deployment descriptors, i end up with
one file per bean in the proper folder. problem is that each Bean-ejb-jar.xml file
contains information on all the beans. i don't want that.
<ejbdoclet verbose="on" ejbspec="2.0"
destDir="${basedir.webapp.web-inf.src.gen}">
<fileset dir="${basedir.webapp.web-inf.src}">
<include name="**/*Bean.java"/>
</fileset>
<deploymentdescriptor destinationFile="{0}-ejb-jar.xml"/>
</ejbdoclet>
per an archive in the list some where, i noticed that i could try to look over the
ejb-jar_xml.xdt. i removed the forAllSessionBeans around the session bean section of
that file. this gives me a good <session > </session> section of my ejb-jar.xml. now
i still have the assembly-descriptor/container-transaction section to deal with.
so, i have a look at the asm-descriptor.xdt where this stuff is going on. i try to
remove the forAllBeans around the <container-transaction > section. when i do this,
all generated jar files have the same container-transaction section, but it's only for
one bean.
so, if i have 3 beans Aaa, Bbb, and Ccc. i can get it to generate Aaa-ejb-jar.xml,
Bbb-ejb-jar.xml and Ccc-ejb-jar.xml (had to override the getGeneratedFileName to strip
the "Bean-" out). After modifying the ejb-jar_xml.xdt, i have good looking session
sections (top). after modifying the asm file, all 3 files have container-trainsaction
information for the Bbb bean.
note, getting weblogic-ejb-jar to work was very similar. had to modify the
getGeneratedFileName to get Bbb-weblogic-ejb-jar.xml, and had to remove the
forAllBeans in the weblogic-ejb-jar-xml.xdt around the weblogic-enterprise-bean
section. this works nicely.
any ideas how i can get the assembly-descriptor/container-transaction section to also
handle one file per bean like this?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op,ick
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 12/18/2003
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user