Forums Register Login

Representation of SessionBeans in UML Sequence Diagrams

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Also, do we need to show business exceptions in sequence diagrams?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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?
+Pie Number of slices to send: Send
My diagram was high level than that. I didn't show DI per se. Just a uses relationship.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
Simple arrow with stereotype <<uses>>
+Pie Number of slices to send: Send
Thanks Ashutosh and Jeanne.
You don't like waffles? Well, do you like this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1688 times.
Similar Threads
Question regarding Business Delegate, Stateless Session Bean and Entity Bean in SCEA Part 2
Showing Design Pattern in Diagrams (Part 2)...
Few questions on part-II diagrams
Cade component diagram and DAO
Session Bean details in Part 2
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:47:40.