After looking over the xdoclet examples, I think I might provide some more
information.  My project currently is using the ejbjar task to build our
weblogic stateless session beans.  We have it setup such that each bean has
its own deployment descriptors that are prefixed by the bean name.  We
package each bean into its own jar file (no ear or war) for deployment.  

We currently have 19 stateless session beans, and are not using xdoclet for
them.  I'm creating a new bean and would like to use xdoclet for it (and
later migrate other beans when time permits).  If anyone has a suggestion on
how i can rename the ejb-jar.xml and weblogic-ejb-jar.xml, I'd be delighted
to hear it.  I did try to run xdoclet on our entire ejb source tree (by
specifying **\*Bean.jar), and the ejb-jar.xml file that was created
contained entries for all our beans.  Since there's only one bean with
xdoclet markup, this didn't go so well.  It would be really nice if I could
get xdoclet to create one ejb-jar.xml and weblogic-ejb-jar.xml per bean and
have those files prefixed by the bean name.  Is this that uncommon of a
situation?  Suggestions? Comments?

-----Original Message-----
From: COCKLE Timothy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 10:24 AM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] ejb-jar naming convention


I am not sure on this one.
I guess you would need to change the application server to look for the
Sample-ejb-jar.xml and Sample-weblogic-ejb-jar.xml rather then the standard
files. Rather then getting XDoclet to do it you could use ant to rename/move
the files.

However are you sure you want to do this? When you have packed them into the
.jar, .war or .ear file does in matter? 

Like I said I am new to this so could well be missing the point here but I
don't think you need to worry about renaming the ejb-jar.xml file. If you
are sure you do then use ant first and make sure it works.

Tim


-----Original Message-----
From:   Mark Lybarger [mailto:[EMAIL PROTECTED]
Sent:   Tue 05/08/2003 14:16
To:     '[EMAIL PROTECTED]'
Cc:     
Subject:        RE: [Xdoclet-user] ejb-jar naming convention
Now that I'm generating sources and deployment descriptors, how can i get my
ejb-jar.xml named Sample-ejb-jar.xml and Sample-weblogic-ejb-jar.xml for a
SampleBean.java file?

-----Original Message-----
From: COCKLE Timothy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 6:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] ejb-jar naming convention



I am also new to all this... 

I think your generation problem is the same on I had when I fist started.
Are you sure you have the source dir correct?

Mine is set like this:
        <ejbdoclet destDir="${src}" ejbspec="2.0">
                <fileset dir="${src}">
                                <include name="testXdoc/*.java" />
                </fileset>
where the .java files are in ./testXdoc/ (relative to the build.xml)

Also I found Chapter 2 from the EJB cookbook
(http://www.manning.com/sullins2/) to be very usefull. Luckly it is also a
sample chapter so have a look at
http://www.manning.com/getpage.html?project=sullins2&filename=chapters.html

Good luck

Tim
-----Original Message-----
From:   Mark Lybarger [mailto:[EMAIL PROTECTED]
Sent:   Mon 04/08/2003 20:15
To:     '[EMAIL PROTECTED]'
Cc:     
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

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

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

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

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