Hi Daniel (Hoppe) ;),
> 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
> basejarname?
Yes, I have one jar per bean but I wouldn't like to run <ejbjar> for each
bean. Instead (as in ANT 1.2) I would like <ejbjar> to create a jar for each
found descriptors. In the meanwhile I was able to run <ejbjar> with the
following setup:
<ejbjar> as decribed in the previous mail (oldCMP="false").
Names of the bean descriptors:
<entityname>-ejb-jar.xml
<entityname>-weblogic-ejb-jar.xml
<entityname>-ejb-jar-weblogic-cmp-rdbms-jar.xml (or any)
I changed the <type-storage> tag in the <entityname>-weblogic-ejb-jar.xml
descriptor to match the filename of the CMP mapping descriptor as following:
META-INF/com/bmw/vera/ejb/besgrun/<entityname>-weblogic-cmp-rdbms-jar.xml
However, it's important to write META-INF in capital letters. This is due to
<ejbjar> creates a META-INF directory in capital letters in the JAR. I would
like to propose that <ejbjar> will create a META-INF directory as described
in the descriptor.
Comments welcome.
Daniel
>
> Daniel
>
> -----Original Message-----
> From: Wieser Daniel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 3:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: <ejbjar>, <ejb-ref> Problem
>
>
> Daniel,
>
> this is my ejbjar task:
>
> <ejbjar srcdir="build\classes" descriptordir="\src">
> <weblogic
> oldCMP="false"
> destdir="build"
> classpath="${weblogic.home}\classes;${weblogic.home}\lib
> \weblogicaux.jar;\src"
> />
> <include name="**/*-ejb-jar.xml"/>
> <exclude name="**/*weblogic*.xml"/>
> </ejbjar>
>
> Each EJB is located in its own directory (e.g. .\FooBean in
> \FooBean) along
> with
> 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.
>
> Daniel
>
>
> >
> > 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
> >
>