I only use xdoclet to generate the interfaces, not the value objects, but it is probably still relevant.
I have a directory structure "com.company.project.ejb". I have the code sitting in that package and sub packages. Any interfaces that xdoclet generates get put into a sub directory called "interfaces", i.e. "com.company.project.ejb.interfaces" which are jarred seperately from the rest of the system. Works for me, and simplifies compilation etc. -----Original Message----- From: tek1 [mailto:[EMAIL PROTECTED]] Sent: 20 September 2002 16:34 To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] stupid question: how to obtain XXXData object? thanks marcus and colin. i think that i almost have it going, but i have 2 questions: 1. what's the difference between a value object and a data object? (sorry, i'm a bit rusty.) 2. when you generate your ejb files, do you specify a separate source directory (i.e. "src_gen") from the source directory where your non-generated files are (i.e. "src")? i'm facing the problem where a .java file in "src" needs to use a file generated in "src_gen", but a .java file in "src_gen" implements an interface defined in "src" (i can't move this interface to "src_gen". it's the classic chicken-and-egg problem - which comes first. should i have the ejb files generated to my "src" directory so that generated and non-generated .java source files are all compiled together, thus resolving the dependency problem? thank you. At 08:10 02/09/20 -0300, you wrote: >tek1 wrote: > >>i must first apologize for this question since it's been a while since >>i've worked with ejb's, but... >>how do you obtain the XXXData object when making a local client call? > >calling the getData() on the bean. For this method to be generated, you >need to define it as an abstract method on your bean -- the generated CMP >layer will include the code to make getData() works. > >BTW: you should be using Value Objects... you should be using Value >Objects... you should be using Value Objects... > >-- >MB > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user For optimum solutions that save you time, visit www.ds-s.com. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
