ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Hoppe" <>
Subject RE: <ejbjar>, <ejb-ref> Problem
Date Fri, 12 Jan 2001 19:55:00 GMT

are you trying to build one jarfile per bean or do you plan to put all the
ejbs in one jar? If you plan to place all beans in one jar you should
probably use a joined start point for your ejb classes (your compile dir).
I'd not split up the beans in this case. The descriptors should have the
standard names (like the ones in my prior posting). In this setup, your
ebj-jar.xml and weblogic-ejb-jar.xml contain information for more than one
If you try to have one jar per bean I suppose you'll have to run ejbjar once
per bean, but basically the rest will stay the same. Did you try to set the


-----Original Message-----
From: Wieser Daniel []
Sent: Friday, January 12, 2001 3:06 PM
To: ''
Subject: RE: <ejbjar>, <ejb-ref> Problem


this is my ejbjar task:

	<ejbjar srcdir="build\classes" descriptordir="\src">
		<include name="**/*-ejb-jar.xml"/>
		<exclude name="**/*weblogic*.xml"/>

Each EJB is located in its own directory (e.g. .\FooBean in \FooBean) along
it's descriptors.

How should the descriptors in the .\FooBean directory be named?
I tried some variations but either Ant or ejbc throws an Exception.


> this is an example of the new style ejbjar task.
> <ejbjar srcdir="../../compile"
> 	descriptordir="../../compile/de/sitewaerts/futuna/ejb/entity"
> 	basejarname="futunaentity">
> 	<weblogic
> 		destdir="../../application/fbs/serverclasses/temp"
>		oldCMP="false" rebuild="false" compiler="jikes">
> 		<classpath>
> 			<path refid="base_classpath"/>
> 			<pathelement path="../../compile"/>
> 		</classpath>
> 	</weblogic>
> 	<include name="**/ejb-jar.xml"/>
> 	<exclude name="**/weblogic*.xml"/>
> </ejbjar>
> The descriptors are ejb-jar.xml, weblogic-ejb-jar.xml and the bunch of
> weblogic-cmp-rdbms-jar-<entityname>.xml files, all located in
> '../../compile/de/sitewaerts/futuna/ejb/entity'.
> The srcdir is the directory where the compiled classes are located.
> The descriptordir points to the directory where the
> descriptors are actually
> located.
> The basejarname attribute is the actual name of the resulting jar
> (futunaentity.jar in this case).
> the attribute 'rebuild="false"' causes the weblogic task to
> run ejbc just in
> case that interfaces of ejbs have been changed. Otherwise
> just the modified
> bean class is replaced in the jar.
> Daniel

View raw message