William I. Zumwalt [EMAIL PROTECTED] penned

> Do I have enough in my build.xml and enough attributes
> in my bean below to generate the home and remote
> interfaces for my EJB below? Everything compiles fine,
> but none of my classes are being generated.

Double-check your <fileset> to make sure you're finding the bean source
files. For example, are they actually called FooBean.java or
FooEJB.java? Also, run ant in verbose mode to see if it's more helpful.
I'd recommend posting the output of ant -verbose here so we can check it
out.

I've put other comments (though I don't think any of them should stop
generation of you interfaces) within the code.

> --- my DeviceBean.java ---
> /**
>  * @ejb.finder
>  *      method-intf = "HOME"

"Home" is the default, but I do not know if attribute values like this
are case-sensitive or not.

>  *      signature="java.util.Collection
> findAllDevices()"
>  *      result-type-mapping = "Remote"
>  *      query = "SELECT OBJECT(k) FROM Device k"
>  *
>  * @ejb.finder
>  *      signature="java.util.Collection
> findDeviceByUnitId(String unitId)"

Query?

>  * @ejb.pk class = "java.lang.String"

When you have a single-column primary key using one of the standard
java.lang types, you should not specify the class but instead use 

   * @ejb.bean
   *      primkey-field="id"

>  */
> public abstract class DeviceBean implements EntityBean
> {
>     /**
>      * @ejb.interface-method
>      * @ejb.persistent-field

This tag is deprecated; it was replaced by @ejb.persistence.

>      * @ejb.pk-field
>      *
>      * @jboss.column-name name = "Id"

I'm running WebLogic 7.0, and XDoclet picks up column-name, sql-type,
and jdbc-type from the @ejb.persistence tag. I don't know if the JBoss
module does the same. The docs certainly show separte JBoss tags like
you have, so perhaps it doesn't.

>      * @return the unique serial number of the device.
>      */
> 
>     public abstract String getId();

Everything looks fine, as I said. I don't see anything here that should
stop the generation of files, so I suspect it isn't finding the source
files to begin with.

-- 
David Harkness                               Sony Pictures Digital
Sr. Software Engineer   310.482.4756    [EMAIL PROTECTED]

        Those who judge the value of advice by its source
        will at once dismiss the best and follow the worst.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to