• 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

How to draw a EJB3 in class diagram

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks your reply Scott Soo
[ December 26, 2008: Message edited by: Jufeng Dou ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic