package com.icsaward.award.server.sb.em.address;
import javax.ejb.*; import java.util.*;
import com.icsaward.award.server.eb.common.ICSBasePK; //more imports...
/**
* @ejb.bean description="This entity manager handles address and zipcode information exchange."
* type="Stateful"
* ejb-name="AddressEMBean"
* jndi-name="AddressEMBean"
* @jonas.bean
* ejb-name="AddressEMBean"
* jndi-name="AddressEMBean"
*/
public class AddressEMBean extends com.icsaward.award.server.sb.common.EntityManagerBean
{
//...class definition...
}
-------- Original Message --------
Subject: Re: [Xdoclet-user] Help getting started with XDoclet
Date: Tue, 16 Mar 2004 09:04:39 -0500
From: Clifton C. Craig <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Actually they are. See below:
<property name="src.dir" location="D:\scm\src\com\icsaward\award\server\sb\em\address\"/>
the fileset dir points directly to the source that is to be operated on. I know it's bad design but it is just an ad-hoc thing I'm trying to get working. Once I get this working I will work the actual xdoclet stuff in with our regular build. I'll include a complete example of the build I'm having trouble with:
<project name="BasicEJB" default="generate">
<property name="appserver.root" location="D:/appservers/jonas-3.3.5"/>
<property name="build.dir" location="${basedir}/build"/>
<property name="src.dir" location="D:\scm\src\com\icsaward\award\server\sb\em\address\"/>
<path id="compile.path">
<pathelement path="${appserver.root}/lib/jonas.jar"/>
</path>
<path id="xdoclet.class.path">
<fileset dir="D:\scm\tools\xdoclet-1.2">
<include name="*.jar"/>
</fileset>
<!-- compile.path == jonas.jar -->
<path refid="compile.path"/>
<path location="d:\scm\bin"/>
</path>
<target name="generate">
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.class.path"/>
<mkdir dir="${src.dir}/META-INF"/>
<ejbdoclet
destdir="${src.dir}"
excludedtags="@version,@author"
force="true"
verbose="true"
ejbspec="2.0">
<fileset dir="${src.dir}" includes="*Bean.java"/>
<deploymentdescriptor destdir="${src.dir}/META-INF"/>
<jonas version="3.0" destdir="${src.dir}/META-INF"/>
</ejbdoclet>
</target>
<target name="compile" depends="generate">
<javac srcdir="${src.dir}" destdir="${build.dir}"
classpathref="compile.path"/>
</target>
<target name="build" depends="compile">
<taskdef name="ejbjar"
classname="org.objectweb.jonas.ant.EjbJar"
classpath="${appserver.root}/lib/common/ow_jonas_ant.jar" />
<ejbjar srcdir="${build.dir}"
dependency="none"
naming="basejarname"
basejarname="AddressEMBean"
descriptordir="${src.dir}/META-INF">
<classpath refid="compile.path"/>
<jonas destdir="${build.dir}"
jonasroot="${appserver.root}"/>
<include name="*ejb-jar.xml"/>
<exclude name="*jonas*.xml"/>
</ejbjar>
</target>
</project>
Note the build target is not called. I haven't gotten that far with my recent example. I did get that far with my prior example that did not seem to have a problem generating the necessary files. Thank you for all the replies but I'm still having trouble.
Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG 2101 Embassy Drive Lancaster, PA 17603
Phone: 717-295-7977 ext. 621
Fax: 717-295-7683
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Andrew Stevens wrote:
On Mon, 2004-03-15 at 16:08, Clifton C. Craig wrote:
I am a beginner trying to get off the ground with XDoclet. I have, so far, managed to get a basic stateless bean deployed onto Jonas with little trouble. I am now trying to take what I learned and apply it to our project here which involves several hundred EJBs and I am experiencing problems. Namely the generated deployment descriptors are...
<ejbdoclet
destdir="${src.dir}"
excludedtags="@version,@author"
force="true"
verbose="true"
ejbspec="2.0">
<fileset dir="${src.dir}" includes="*Bean.java"/>
^^^^ Your beans aren't in a package?
Andrew.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG 2101 Embassy Drive Lancaster, PA 17603
Phone: 717-295-7977 ext. 621
Fax: 717-295-7683
[EMAIL PROTECTED]
[EMAIL PROTECTED]
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
