aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Xdoclet : pros & cons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Xdoclet : pros & cons" Watch "Xdoclet : pros & cons" New topic
Author

Xdoclet : pros & cons

Mahesh Asrani
Greenhorn

Joined: Mar 03, 2005
Posts: 15
Hi All

I have been assigned the task of evaluating XDoclet for our current project. The project which I am evaluating this for is a 3 tier application involving EJB's , web components etc.

we are using Eclipse as the IDE & Weblogic as the app server.
Can somebody with past experience in Xdoclet post the advantages & disadvantages of using the same


Bye
MA
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

All I have are advantages. Anytime you can save a lot of time by not having to code repetitive stuff and concentrate on the more difficult custom coding is a god send.

At work here we have over 2000 Entity beans, if we had to hand code it, it would have costed us millions of dollars. Using XDoclet, save that time, and you can customize it yourself too,

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Well this isn't really an IDE question. I use XDoclet "in" Eclipse, but it's actually done by Eclipse invoking Ant. I've not attempted to see if I could auto-build XDoclet output in Eclipse.

XDoclet is great where you'd like to have one definition file that generates multiple files that must be kept in sync. EJBs being a classic example, as are the Struts Action processors.

Considering that "attribute-oriented programming" is a key addition to Java (starting with Java 5), you have to expect that a lot of people have found value in this sort of process.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Originally posted by Tim Holloway:
Well this isn't really an IDE question.

But it's an "other tools" question, so we are still in the right forum.

Mahesh,
The only con I can think of is that you have to learn how to use Xdoclet. However, that applies to anything you would use in its place and I think the advantages more than cover it.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mahesh Asrani
Greenhorn

Joined: Mar 03, 2005
Posts: 15
Hi All

Thanks for your prompt response. By cons what I intended to ask is when would Xdoclet be an overkill i.e. Which sort of applications should not use Xdoclet at all.


Bye
MA
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

I think it's less to do with the application than the amount of work you want to spend in the build framework. Obviously XDoclet is wasted if there's no need for the kinds of files it generates, but it's pretty darned useful if there is. Just one minor misapplication of a method attribute between files on an EJB can make a believer out of you.

Is XDoclet an "other tool" or an "other build tool"?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Xdoclet : pros & cons