Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using Xdoclet to create EJBs

 
Jim Rock
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it sufficiently mature? Is it well supported? Do you recommend it.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Considering that XDoclet won SD Magazine's Award for Business Integration and Data Tools this spring, I'd say XDoclet is "sufficiently mature"
 
dhiraj mudgil
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone direct me to some page where i can learn more about the use of Xdoclets, with examples.
Cheers!
Dheeraj
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
xdoclet.sourceforge.net/
Originally posted by dhiraj mudgil:
Hi,
Can anyone direct me to some page where i can learn more about the use of Xdoclets, with examples.
Cheers!
Dheeraj
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start at www.xdoclet.org. Especially the Resources page seems helpful.
[ August 12, 2003: Message edited by: Lasse Koskela ]
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any IDE support XDoclet?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this for a simple intro
www.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hear there is a good XDoclet book coming out soon:
http://www.amazon.com/exec/obidos/ASIN/1932394052
I am a bit biased, of course, but it should be a good intro to XDoclet. The ebook version should be available from Manning soon. The print book might be ready as soon as the send of september.
If you are looking to get started with XDoclet now, you might take a look at
Erik Hathers JavaDevWithAnt project. He uses XDoclet in it, so you have the advantage of having an actual working system to look at.
http://www.superlinksoftware.com/cgi-bin/jugwiki.pl?JavaDevWithAnt
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep,
I actually run XDoclet from within Eclipse.
Check out my blog for a screenshot of auto-completion of Xdoclet tags in eclipse.
Pho
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norman,
Do we really need a book on Xdoclet ? I learnt the EJB parts of Xdoclet in 2 weeks; and was generating EJBs with relative ease. And when the tedium of tagging CMP/CMR relationships got the better of me; I just use androMDA.
Pho
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I actually use a GUI RAD program (EJBWizard) to pull metadata from databases and build the EJB skeleton. However EJBWizard is a template-based genertor, so I have some templates that spit out the XDoclet tags. In addition to getting the best of both worlds that way, I'm also using the WebDoclet + more wizard-generated templates subsystem to create Struts support files.
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pho Tek:
Norman,
Do we really need a book on Xdoclet ? I learnt the EJB parts of Xdoclet in 2 weeks; and was generating EJBs with relative ease. And when the tedium of tagging CMP/CMR relationships got the better of me; I just use androMDA.
Pho

Well, there is a lot more to XDoclet than EJB. That's the application most people use, but that's not it. There's servlets, web frameworks (struts, webwork), application servers (we focus on JBoss and weblogic), JMX, soap, mock objects, Hibernate, JDO. We also talk about general code generation principles and best practices, developing custom XDoclet code generation tasks, and tools like AndroMDA.
The fact that it took you two weeks to learn to just do simple EJBs with XDoclet suggests to me there is a good market for the book. It shouldn't take nearly that long.
But now that you've already invested the time to learn XDoclet, do you need a book? If you are perfectly happy with what you are doing and don't need/want to customize your generated code or go any deeper with XDoclet, then you probably can find a better use for your $30.
I do think we've managed to make the book useful both to XDoclet novices and to more experienced XDoclet users. The feedback we got from the reviewers confirmed this, but you'll have to judge for yourself. Take a look at it at the bookstore when it comes out and let me know what you think.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
norman,
Is there any plan for Javaranch book promotion?
 
Sam Kebab
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried it with the lomboz plugin for eclipse and it works like magic.
Question: after you generate all your other classes/ejb-jar...and others through xdoclet, do you edit your call-back methods?
I ask this because the generated class files have a comment - "do not edit this - generated by ...". Ok so what if i want to write an implementation inside eg. ejbRemove() etc.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... Ok so what if i want to write an implementation inside eg. ejbRemove() etc.

Aren't you supposed to write the ejbRemove() implementation into the same bean implementation class where you define your @xdoclet tags?
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
norman,
Is there any plan for Javaranch book promotion?


I haven't talked to anyone at Javaranch yet about it, but I am sure we will do one.
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sam Kebab:
I have tried it with the lomboz plugin for eclipse and it works like magic.
Question: after you generate all your other classes/ejb-jar...and others through xdoclet, do you edit your call-back methods?
I ask this because the generated class files have a comment - "do not edit this - generated by ...". Ok so what if i want to write an implementation inside eg. ejbRemove() etc.


All you need to do is create the ejbRemove() method in your bean class. If you do that, the XDoclet generated ejbRemove() (in the generated subclass) will call super.ejbRemove(). XDoclet is pretty smart about what it generates.
 
Sam Kebab
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response. That's terrific.
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norman,
The fact that it took you two weeks to learn to just do simple EJBs with XDoclet suggests to me there is a good market for the book. It shouldn't take nearly that long.

That included writing templates to plugin our own support code. I ended up ditching Xdoclet ValueObjects in preference to our own implementation. I guess for the masses of people who doesn't have time to read Xdoclet code and experiment; a book is welcomed. But for me, experience is the best teacher.
Good luck on your book.
Pho
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pho Tek:

a book is welcomed. But for me, experience is the best teacher.


For what it's worth, that's how I learned XDoclet too...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic