ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <>
Subject ejbjar, weblogic tasks: where to put the JNDI info
Date Thu, 12 Dec 2002 16:01:52 GMT
I'm teaching myself EJB using Mastering EJB from Roman, and I'm just 
doing the 'hello world' EJB, the first project.

This is ant task I've composed, and I'm using weblogic7:

<target name="ejbjar"
         description="Make the EJB jar file">
   <mkdir  dir="${dist.home}"/>
   <ejbjar srcdir="${build.home}/classes"
     <dtd publicId="-//Sun Microsystems, Inc.//.....blabla"
     <dtd publicId="-//BEA Systems, Inc.//DTD WebLogiblabla"
     <weblogic destdir="${dist.home}" ejbcclass="weblogic.ejbc">
       <classpath refid="compile.classpath"/>
   <echo  message="deployed jar to ${dist.home}"/>

There are 2 ejb-jar.xml files, one vanilla and one weblogic-ejb-jar.xml.

This makes 2 jar files, one called Hello.jar and one called null.jar 
which I don't understand. I think there should only be one.

Secondly the only reason for the existence of the weblogic-ejb-jar.xml 
is because I copied it from the book's sample files. It contains the 
JNDI declaration


Can't this JNDI stuff go in the generic ejb-jar.xml? Or is this just not 
possible in EJB2.0?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message