• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Servlet representation in a UML diagram

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
I have little knowldge of UML diagrams. I know that to represent a class, we use rectangular boxes and inteface implementationis represented by dotted lines.

That said, what's the stand notation used to represent a servlet. The sertver that I need to represent is an ordinary servlet and not really a controller.

Pls...help...

-Reema
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just the familiar rectangular box is fine. Take a look at any Servlet source code ... it probably implements Servlet or extends some abstract framework class. You could choose to show those if you thought the reader needed to know or omit them if it's not important to your story.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you think the fact that it is a servlet should stand out, you could also use a stereotype.

But remember that you should model for purpose - and your model should only contain those things that are vital for that purpose.
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Stan and Ilja Preuss for your comments.

What exactly is a stereotype?

My servlets directly extend from the HttpServlet, and I'm using a diamond box to represent a servlet in UML, hope this is fine.

Thanks again

-Reema
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Standard UML notations may not have all the notation that you are looking for. In which case you may want to create your own notation.

Example: Regular classes as retangular box with sharp edges.
and
Servlets as rectangular box with round edges, which will stand out.

your choice.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Reema Patel:
What exactly is a stereotype?



With a stereotype, it would look like this:


[ August 24, 2006: Message edited by: Ilja Preuss ]
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks everyone for your comments...
 
reply
    Bookmark Topic Watch Topic
  • New Topic