On Mon, 20 Nov 2000 08:04:39 -0800, Darryn Sneller <[EMAIL PROTECTED]>
wrote:
>Hi,
> This is a great list and I'm hoping someone can help
>me out with a question. If I can create an XML file
>that contains certain fields like "Address", "Name"
>and "Telephone Number", for example, is there any tool
>out there that will parse the XML and generate an EJB
>class that contains get and set methods for all of
>these fields? Basically, I want to be able to take any
>XML file and use it to do this sort of thing, rather
>than writing a whole bunch of simple methods. I know
>there is more to EJB classes than get/set but I'm just
>wondering about the availability of something along
>these lines, which could then be extended.
Well, I have something similar, but not XML (my approach is better IMHO,
since the nr of files is minimal). I have made a tool (which is freely
available, including source) that lets you comment your base bean with
custom JavaDoc tags (that I have invented). From that bean source I then
generate the rest of the classes, including the XML file for the entire
application. Very nice. Works great with Ant too. And of course the
templates for the generated sources are included, so you can modify them
as you see fit.
For more info see:
http://www.dreambean.com/ejbdoclet.html
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".