aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Session Bean details in Part 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Session Bean details in Part 2" Watch "Session Bean details in Part 2" New topic
Author

Session Bean details in Part 2

Luay Abdulraheem
Ranch Hand

Joined: May 18, 2011
Posts: 65
Dear All,

Suppose I an using a stateless session bean to hold some business logic. In real world, there will be an interface (local or remote) and an implementation to that interface.
For example: StatelessService + StatelessServiceImpl.

Question: In Class, Component and Sequence diagrams, should we show the interface, the Implementation, or both ??

Thanks,

SCJP, SCWCD, OCMJEA, OCEEJBD, OCEJPAD, TOGAF® 9 Certified, OCEJWSD
Rishi Shehrawat
Ranch Hand

Joined: Aug 11, 2010
Posts: 218

I have showed interface in class & sequence diagram. In the component diagram i have shown the implementation.
Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

In Cade and Sheil example interfaces are not used in any of presented diagrams. Should we add interfaces in our designs?


SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30937
    
158

I just showed one and implied the other to avoid clutter. I don't think there is harm in showing both. But if both are in the class diagram, you should show both in the sequence diagram. And that's even more clutter.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1089
    
  10

I didn't show the interface and read another post where it was mentioned that it was very important - its a relief to read this post that its ok to follow either approach...


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session Bean details in Part 2