first, i'm new to xdoclet.  trying to get it integrated into our project.

we're using a naming convention for our ejb-jars such as Sample-ejb-jar.xml
and Sample-weblogic-ejb-jar.xml.  This is needed by the ejbjar task to
compile the stateless session beans quickly and easily.  is there a way to
get these deployment descriptors to have this naming convention?  

also, i've been playing with the ejbdoclet task for a while and can't get it
to generate remote/home interfaces.  Here's my ant task and the ejb class
i'm trying to work with. any ideas would be most appreciated!

  <target name="ejbdoc">
                <taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="ejbdoclet.classpath"/>

                <ejbdoclet verbose="true" ejbspec="2.0"
destDir=\Source\WEB-INF\src\gen-src">

                        <fileset dir="${ejb20_source}">
                            <include name="event/EventSubmitBean.java"/>
                        </fileset>

                        <remoteinterface/>
                        <homeinterface/>
            <deploymentdescriptor/>


                </ejbdoclet>
        </target>


import javax.ejb.*;

/**
 * This is a teller bean. It is an example of how to use the XDoclet tags.
 *
 * @ejb.bean         name="Teller"
 *                   description="Teller example bean"
 *                   jndi-name="ejb/bank/Teller"
 *                   type="Stateless"
 *
 *
 * @author  <a href="mailto">mark.lybarger</a>
 */
public abstract class EventSubmitBean implements SessionBean {
    /**
     * Transfer money between accounts.
     *
     * @ejb.interface-method view-type="remote"
     */
    public String helloWorld() {
                return "HelloWorld";
    }

    /**
     */
    public void ejbActivate() {
    }

    /**
     */
    public void ejbPassivate() {
    }

    /**
     */
    public void setSessionContext(SessionContext ctx) {
    }

    /**
     * Remove
     *
     * @ejb.transaction
     *    type="Mandatory"
     */
    public void ejbRemove() {
    }

}

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to