• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

question about sequence diagram

Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would You assess diagram for following use case

User buys a selected pet,
system verifies if selected pet still exist
system sends email with confirmation
system sends message do delivery outside company system
confirmation page with buyed pet color is displayed.

1 should I show browser ?
2 to whom should a browser send a message? i send to DispatcherServlet, is it ok? should it be web server? what a message shoudl it be get(httpServletRequest, httpServletResponse)? i dont like this idea myself.
3dispatcher sevlet calls UrlToControllerMapper - it returns controller for current url, disp servelt calls on returned controller handleRequest(httpServletRequest, httpServletResponse) - should I show this steps on seq diagram?
4 orderController call checkAvailabilty on PetStoreServiceImpl, is it all right that i show true in return, how should i show that there can also be alternative flow - when false is returned - and than info with appropriate message is displayed to client - but i wouldnt like to show whole flow through all mvc classes, can i simple omit it?
5should i show MailServiceImpl slsb class or MailService interface with slsb annotation? on interface i couldn't show insertMessageToJms - because it's specific to this implementation, yet important
6 how should i show in sequence MailServiceMDB - it processes message inserted to jms queue by MailServiceImpl.insertMessageToJms(..)
should i show jms queue?
7 deliverServiceMDB communicates with external system of shipping company, how can i model it?
8 how can i show creating new modelAndView, is my method ok (calling new("petColor", petColor)) - i have seen in samples eg no new but <<create>> but how to show params? <<create>>("petColor", petColor) ?
9 any other remarks, what would You do better, other, what is completely unacceptable, may be not liked by sun evaluators?

thank You in advance.

[Thumbnail for seq.png]
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic