I looked through the list, and it did not seem like anybody answered your
question. I've done what you are talking about.

Here is a snippet from a working script that outputs to another file
name....

<deploymentdescriptor destdir="${WEBINF}" destinationFile="cmp-xdoclet.ejb"
validatexml="true" />

Use the destinationFile attribute... you can call it anything you like.

Now about all of those other non-XDocltized EJBs in your script....

Refine your include directive to only include the EJBs that have been
XDoclitized.

e.g.,

<fileset dir="mydir">

   <include name="/just/this/package/not/the/rest/*EJB.java"/>
</fileset>



Hey I wrote some tutorials on XDoclet that might be useful background
information.

This one is how to write your own XDoclet template.
http://www-106.ibm.com/developerworks/edu/ws-dw-ws-xdoc-i.html?S_TACT=103AMW
04&S_CMP=EDU


This one is how to use XDoclet for Custom Tags, Servlets, and EJBs.

http://www-106.ibm.com/developerworks/edu/ws-dw-ws-j2x-i.html?S_TACT=103AMW0
4&S_CMP=EDU

There is also a tutorial I wrote about Struts that covers XDoclet and
Struts:

http://www.triveratech.com/downloads2/index.htm

I am going to add a best practices on Struts that will highlight XDoclet and
Struts in more detail.

I just co-authored a book on Struts (Professional Struts by Wrox). It covers
XDoclet and Struts fairly well.

Rick Hightower
Chief Technology Officer
Trivera Technologies
http://www.triveratech.com
520 290 6855 (Phone)
520 977 8605 (Mobile)
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Lybarger
Sent: Monday, August 04, 2003 12:15 PM
To: '[EMAIL PROTECTED]'
Subject: [Xdoclet-user] ejb-jar naming convention

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



-------------------------------------------------------
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