William I. Zumwalt penned

> how to return the Map object
> in my DAO *properly* to my session bean. I know I
> could do this if I wrote the code, but I want to know
> how to do it using XDoclet (which generated all the
> DAO classes) so that I don't have to write all that.

>From looking at the docs for the @dao.call tag [1], I would guess that
XDoclet will generate a subclass of your session bean that implements
the call to the DAO. The docs say

  The method is a call to a data access object; the method
  will be included in the DAO interface, and the EJB's
  generated subclass will contain a call to the DAO's method.

Therefore, simply declare the method abstract and omit the body.

  /**
    * @ejb.interface-method
    *      view-type="remote"
    *
    * @dao.call
    */
  public abstract Map getDeviceList() ;

-- 
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: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to