• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using Xdoclet to create EJBs

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it sufficiently mature? Is it well supported? Do you recommend it.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does any IDE support XDoclet?
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read this for a simple intro
www.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
norman,
Is there any plan for Javaranch book promotion?
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response. That's terrific.
 
Pho Tek
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic