This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Sequence Diagram and WebService  RSS feed

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I need to invoke a web service from a DAO i.e. SessionBean -> DAODactory->DAO->?

Can you guide how to represent this invocation in my sequence diagram and how will I represent the web service object in the diagram e.g. Proxy.

Also, as DAO needs the endpoint URL of the webservice, What is the best way to lookup the URL instead of hardcoding it. I reckon I can't use @WSReference annotation here as DAO is not container managed.

Thanks
Amit
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Kumar Amit wrote:Hi Friends,
I need to invoke a web service from a DAO i.e. SessionBean -> DAODactory->DAO->?

Can you guide how to represent this invocation in my sequence diagram and how will I represent the web service object in the diagram e.g. Proxy.

Also, as DAO needs the endpoint URL of the webservice, What is the best way to lookup the URL instead of hardcoding it. I reckon I can't use @WSReference annotation here as DAO is not container managed.

Thanks
Amit



URL needs to be looked up from JNDI tree.
Proxy is just like DAO or facade so show that just like other objects. You can show some info stereo type.
I have put one simple synchronous call from DAO to XYZ system(external system). Not sure, if that's the most right way of doing it but I have a feeling that we are showing more than required. We are supposed to produce high level sequence diagrams, not method parameter level just my pov...
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about showing service locator pattern here to lookup for endpoint from JNDI?
Also, how are you showing XYZ system(external system) in the sequence diagram? Is like another other class with a name "XYZSystem"
I reckon we should show a class representing stubs generated using WSDL?
Other members can you please comment whats the best way to show this invocation?
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can add UML notes, I did that.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can simply mention DAO are accessed via Factory pattern in your notes. In sequence /class diagram it's not necessary to show how. Lookup or annotation is how - keep that out of class / sequence diagram. My suggestion.
 
Bartender
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use service locator pattern to do a lookup for SEI from JNDI. Otherwise there is no harm reading it from the properties file.
External system you can show as an entity(with some different color) on the sequence diagram and provide UML notes(dog eared boxes) regarding your convention.
 
A feeble attempt to tell you about our stuff that makes us money
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!