Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to draw a EJB3 in class diagram

 
Jufeng Dou
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB2, there are some interface classes to implement, and i can draw them in class diagram to show the stucture of a EJB.

But, now in EJB3. it use annotation replace the interface. how to desc a EJB? Only use one class? How to desc the annotation attributes?
 
Scott Soo
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jufeng Dou:
In EJB2, there are some interface classes to implement, and i can draw them in class diagram to show the stucture of a EJB.

But, now in EJB3. it use annotation replace the interface. how to desc a EJB? Only use one class? How to desc the annotation attributes?


Hi, how to show EJB3 depends on your design decision. It may still be advantageous to expose as interface for EJB methods you wish to expose although annotation is supported. You can refer to "EJB3 In Action" book for more understanding. If you are exposing your EJB methods as Interface, you will show the Interface and the EJB in the class diagram. If not, you can use <<StereoType>> in UML to describe a EJB class in your class diagram.

Hope the above helps.

Thank you!!

Cheers!!
 
Jufeng Dou
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks your reply Scott Soo
[ December 26, 2008: Message edited by: Jufeng Dou ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic