wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Representation of SessionBeans in UML Sequence Diagrams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Representation of SessionBeans in UML Sequence Diagrams" Watch "Representation of SessionBeans in UML Sequence Diagrams" New topic
Author

Representation of SessionBeans in UML Sequence Diagrams

Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Hi Friends,

I want to show interaction between my presentation layer(JSF BackingBeans) and business tier (SessionBean) in sequence diagrams which then invoke JPA entity manager. Can you guide as to what I should show in sequence diagram - Business Interface of the session bean or the actual stateless session bean or BOTH?

Cheers

Amit


SCJP, SCJD, SCEA
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Also, do we need to show business exceptions in sequence diagrams?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

I would pick one for the session bean and go with that. Neither option is wrong. For business exceptions, if they are part of the main flow, you should show them. If they are things that are truly unexpected, it isn't needed.


[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
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Jeanne Boyarsky wrote:I would pick one for the session bean and go with that. Neither option is wrong. For business exceptions, if they are part of the main flow, you should show them. If they are things that are truly unexpected, it isn't needed.

Thanks for the reply Jeanne. If I show stateless Session Bean implementation class instead of business interface in sequence diagram then how to show dependency injection in the diagram between Backing Bean and Session Bean interface?

Can we show dependency injection using bean implementation class instead of Business interface?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

My diagram was high level than that. I didn't show DI per se. Just a uses relationship.
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
I have shown Interface as well as the SLSB.
Regarding DI, I just mentioned in the sequence diagram as UML comment(Dog eared box that Interface will be injected into JSF/Business Delegate).

I used Business Delegate to take care of all the exceptions. One can use intercepting filter also for that purpose.


Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Sharma Ashutosh wrote:I have shown Interface as well as the SLSB.
Regarding DI, I just mentioned in the sequence diagram as UML comment(Dog eared box that Interface will be injected into JSF/Business Delegate).

I used Business Delegate to take care of all the exceptions. One can use intercepting filter also for that purpose.


Hi Ashutosh,

Do you mean you showed both session bean's business interface and session bean itself in the sequence diagram? If so how did you showed call between business interface and the bean?

e.g.

BackingBean->Session bean's Business interface->Session bean class->JPA/entity
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
Simple arrow with stereotype <<uses>>
Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Thanks Ashutosh and Jeanne.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Representation of SessionBeans in UML Sequence Diagrams
 
Similar Threads
Cade component diagram and DAO
Session Bean details in Part 2
Showing Design Pattern in Diagrams (Part 2)...
Question regarding Business Delegate, Stateless Session Bean and Entity Bean in SCEA Part 2
Few questions on part-II diagrams