On Wed, 2003-06-18 at 22:46, Michael Kerry wrote: > I am working in a an environment where some developers > are building EJBs with an IDE, like JBuilder, and some > (like me) are using XDoclet + ant. (Don't ask...)
Don't need to ask. We're IDE-agnostic at our place; there's people using IDEA, Netbeans, Eclipse, some text editor die-hards, and one guy I know of using VisualAge for Java! So long as our build machine(s) can produce the jars/ears using XDoclet and Ant, we don't care what people edit the files with... > Anyway, I tried to get a reference to one of the other > developer's beans in my code by adding an @ejb-ref in > my code, but the ejbdoclet target complained that it > didn't know anything about this other bean. I have > local copies of this bean, and we will be deployed in > the same app server. > > A) Can I even do this? Are you talking about having your beans and his within a single EJB jar, separate jars within a single ear, or what? Do you have access to his source files or just the classes? > B) Is there an element in the ejbdoclet target that I > am missing that will expose the existence of these > other beans? Have a look at the @ejb.ejb-external-ref tag, that might do what you need. It's similar to @ejb.ejb-ref, but you specify the type/home/etc. as parameters rather than xdoclet going off and figuring them out from the tags in the target bean. If you're wanting to include other people's (non-xdoclet) beans in an EJB jar you're generating, you'll probably need to use merge points to include the relevant bits in the DD. Andrew. ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
