Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

hard time with 'xdoclet 2'

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

A request for a code example on how to generate ejb classes by using xdoclet2 and Ant. I've managed to generate some hibernate mapping files but I'm having a hard time with those ejb's. Thanks
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since no-one else has replied to this, I'll point out that:

  • XDoclet 1.2.* works fine, and there are many examples around of its use. But then if you want to use XDoc2 for some reason, just ignore me
  • You might have better luck with this query in the J2EE/EJB forum.


  • From my relatively small amount of work with ejbdoclet/wseedoclet, I came to the conclusion that if I had to use it again, I had a choice: I could either buy a decent book, or go raving mad - I found the documentation to be fairly sparse for non-trivial things, and guessing/Googling was thoroughly frustrating.

    One more thing, are there no examples included yet in version 2? Version 1.2 contains some extensive examples for EJBs.


    -Tim
    [ July 21, 2005: Message edited by: Tim West ]
     
    Tim West
    Ranch Hand
    Posts: 539
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I just had a look at the XDoclet 2 website, and from the EJB perspective, some things are either missing, or just reorganised so that I didn't find them immediately.

    In particular, tag for each app server are not listed anywhere (@weblogic, @jboss, etc). If these really aren't present in version 2, I'd strongly advise sticking with version 1.2.*.



    -Tim
     
    Ranch Hand
    Posts: 1209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I wrote some documentation in general for XDoclet 2 - mylast project was'nt too hectic Does somebody care to review?..let me know. Its not complete yet for I got pulled into another project with stricter deadlines. But its almost there. But then let me point out upfront that English is'nt my native tounge so you might run into occasional incoherent sentences ..may be you can fix them !
     
    Wim Drapier
    Greenhorn
    Posts: 11
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Originally posted by Karthik Guru:
    I wrote some documentation in general for XDoclet 2 - mylast project was'nt too hectic Does somebody care to review?..let me know.



    I would love to take a look at it. I'm a student whith very little experience on how to develop the so called 'real world applications', so that would be more than welcome.

    Don't worry about the english grammar as you may noticed it isn't my native language also.

    @Tim West - Currently using xdoclet 1.2 and everthing works fine, the reason for using the version 2 is pure experimental, thanks for the reply. I tought that xdoclet was a build tool, so sorry if I posted on the wrong forum.
     
    Karthik Guru
    Ranch Hand
    Posts: 1209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I know its a little late. But i got caught up with things at work.
    its here. Please do let me know if you found it to be useful.
    [ October 10, 2005: Message edited by: Karthik Guru ]
     
    Ranch Hand
    Posts: 1934
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I would like to point to the following blog from Craig Walls(he is the author of xdoclet in action). He has some interesting points about the necessity of using Xdoclet in the projects that use new development approached(minimal Entity bean usage etc).

    Here it is.
     
    Karthik Guru
    Ranch Hand
    Posts: 1209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Yes with advent of annotations , the importance of XDoclet has receeded. But it appears that annotations is still not in widespread use and it remains to be seen what developers feel about it. Either way there are still other projects - webwork, spring, jsf (and struts!) that still rely on XML config files. As for move to XDoclet2, the design is way better than XDoclet1.2 and if there is a *need* for code generation then I would use X2 anyday because of its simplicity. Btw they moved the docs to the main page.
    [ October 18, 2005: Message edited by: Karthik Guru ]
     
    Ranch Hand
    Posts: 8943
    Firefox Browser Spring Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Either way there are still other projects - webwork, spring, jsf (and struts!) that still rely on XML config files.



    Dont you think they could use custom annotations ?
     
    Karthik Guru
    Ranch Hand
    Posts: 1209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Originally posted by Pradip Bhat:
    Dont you think they could use custom annotations ?



    oh yes. I never said that they can't.


    Either way there are still other projects - webwork, spring, jsf (and struts!) that still rely on XML config files



    But what remains to be seen if they have it in their roadmap. They have to build the infrastructure to support annotated artifcats. I ran into a blurb by rod johnson for eg where he gives an impression that he is not completely enamoured by annotations like say ejb3. I dont seem to recollect the link though.
    [ October 19, 2005: Message edited by: Karthik Guru ]
     
    Could you hold this puppy for a sec? I need to adjust this tiny ad:
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!