aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sequence Diagram 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 "Sequence Diagram" Watch "Sequence Diagram" New topic
Author

Sequence Diagram

Andy Brown
Greenhorn

Joined: Mar 16, 2009
Posts: 2
What type of message arrow should be used in a sequence diagram from the web browser to a JEE application?

Most diagrams I have seen dealing with web applications (JEE) are synchronous, but arent requests from web clients asynchronous?

Also, should the message arrow connect to the JSP page or should the arrow connect to the controller (assuming use of Front Controller pattern)? What level of detail should be shown on the sequence diagram for SCEA assignment, e.g. should the sequence diagram show the page,controller,view and interactions between them? See the following link for the front controller sequence diagram http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.html

Thanks
Andy
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Andy Brown wrote:What type of message arrow should be used in a sequence diagram from the web browser to a JEE application?

Most diagrams I have seen dealing with web applications (JEE) are synchronous, but arent requests from web clients asynchronous?

No, they are not, why do you think they are asynchronous?

Andy Brown wrote:
Also, should the message arrow connect to the JSP page or should the arrow connect to the controller (assuming use of Front Controller pattern)? What level of detail should be shown on the sequence diagram for SCEA assignment, e.g. should the sequence diagram show the page,controller,view and interactions between them?

If the sequence begins from view, the arrow should connect to JSP page (view), then the request will be forward to Front Controller.
But if begin from link to a page controller, the arrow should connect to Front Controller.

About level of detail, it's up to you, you're an architect, who else can say?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Andy Brown
Greenhorn

Joined: Mar 16, 2009
Posts: 2
Thanks very much for the comments Kengkaj.

Kengkaj Sathianpantarit wrote:
Andy Brown wrote:What type of message arrow should be used in a sequence diagram from the web browser to a JEE application?

Most diagrams I have seen dealing with web applications (JEE) are synchronous, but arent requests from web clients asynchronous?

No, they are not, why do you think they are asynchronous?

I never thought of disconnected requests to a server as being synchronous because there is no connection between the client and the server. Im guessing that because the client (web browser in this case) waits for the server to respond then it is considered synchronous? I wonder if the same is true for AJAX or XMLHTTP requests?


Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Andy Brown wrote:
I never thought of disconnected requests to a server as being synchronous because there is no connection between the client and the server. Im guessing that because the client (web browser in this case) waits for the server to respond then it is considered synchronous? I wonder if the same is true for AJAX or XMLHTTP requests?

To me synchronous processing means the caller need to wait for result, I don't care about "connection". Think about Java object method invocation which is synchronous processing.
For HTTP, the client sends request to server, and wait for result so I view it as synchronous.

By definition AJAX is asynchronous.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sequence Diagram