jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes EJBs and javadoc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBs and javadoc" Watch "EJBs and javadoc" New topic

EJBs and javadoc

Jurka Rahikkala

Joined: Sep 19, 2003
Posts: 2
Is there any general rules or guidelines how to add javadoc comments to EJBs? Should I add comments to remote interface or bean? How should I add references to actual comments? And what's the situation when I'm using e.g. DAO pattern, so that I have more layers to document?
I'd really appreciate, if someone could point out the right place for javadoc API documentation.
Cheers, Jurka
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Hi Jurka, and welcome to the JavaRanch!
I would suggest the following practice: Write "business level" documentation into business interfaces (remote, local) and "implementation detail" documentation into the implementation class javadocs.
Another option could be to write the javadocs only into the business interface and refer to it from the implementation class' javadocs with a @see tag.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: EJBs and javadoc
It's not a secret anymore!