ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <k...@nethead.net>
Subject ejb-jar not including remote interfaces
Date Mon, 15 Oct 2001 04:43:21 GMT
We have a number of ejb-ref tags that specify remote interfaces of other
ejbs.
 
We are currently making our ejb jars manually and include these remote
interfaces in the jar.
 
We'd like to use ant to do this as its a time consuming process. The
ejb-jar task seems to not include these remote interfaces. Is there a
way we can get this task to include them?
 
Here is a snippet of our ejb-jar.xml:
 
    <entity>
      <description>no description</description>
      <display-name>ActivityEJB</display-name>
      <ejb-name>ActivityEJB</ejb-name>
      <home>com.systemstanley.fitness.ejb.ActivityEntityHome</home>
      <remote>com.systemstanley.fitness.ejb.ActivityEntity</remote>
      <ejb-class>com.systemstanley.fitness.ejb.ActivityEJB</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      <reentrant>False</reentrant>
         <ejb-ref>
            <ejb-ref-name>ejb/ImageEJB</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <home>com.systemstanley.documents.ejb.ImageEntityHome</home>
            <remote>com.systemstanley.documents.ejb.ImageEntity</remote>
         </ejb-ref>
      <resource-ref>
    <res-ref-name>jdbc/StanleyJNDI</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
      </resource-ref>
    </entity>
 
and this is our ant target:
 
    <target name="ejb-jar" depends="compile, jar-remote">
        <ejbjar srcdir="${build.dev}"
                descriptordir="${descriptor}"
                destdir="${dist.ejb}" 
                genericjarsuffix = ".jar">
                <classpath refid="classpath.main" />
            <weblogic destdir="${dist.ejb}" noEJBC="true" />
            <include name="**/*ejb-jar.xml" />
            <exclude name="**/*weblogic-ejb-jar.xml"/>
            <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN"
                 location="${etc}/dtd/ejb-jar_2_0.dtd" />
            <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0
EJB//EN"
                 location="${etc}/dtd/weblogic600-ejb-jar.dtd" />
        </ejbjar>
    </target>

 
Ant 1.4
Weblogic 6.0SP2
 
Any help would be greatly appreciated.
 
Kind regards,
 
--Kim

Kim Pepper
: : :  N  E  T  H  E  A  D  : : :
Sydney        ph (02) 9211 1311  fax (02) 9211 4605
Melbourne    ph (03) 9696 4747  fax (03) 9696 9390
mobile         0407 663320
AIM             scorchio96
 <http://www.nethead.net/> www.nethead.net

 

Mime
View raw message