I have a feeling this is goign to be a really stupid
questions, but I have a session bean that makes a call
to my DAO's method which queries a database. My
problems is I'm using XDoclet (and have been for only
a few weeks) and not sure 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.

Any help much appreciated.

--- my session bean 
   /**
     *
     * @ejb.interface-method
     *      view-type="remote"
     *
     * @dao.call
     *
     */
                                                      
                         
    public Map getDeviceList() {
        // This calls the DAO method (as is), but how do I 
        // grab the return obj from the DAO obj below?

        return null;
    }
                                                      
                         

--- this is a class I use which implements the above
generated DAO classes from XDoclet to handle database
specifics.

    ...
    public Map getDeviceList() throws EJBException {
        Map devices = new HashMap();
        // my postgresql specific access code here
        return devices;
    }                                                 
               



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


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