• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

public method name in sequence diagram for JSF page to FacesServlet

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help on below is greatly appreciated. Thanks all for all the previous help.

I have JSF page(.xhtml). In sequence diagram I am showing a messaage from JSF page to EJB like below:
JSF Page -----1------> FacesServlet ---2-------> ManagedBean ---3-----> EJB.(Similar pattern mentioned in Amritendu's book). Note: 1, 2,  3 are numbers used here only for explaining.

I the assignment it is mentioned that all the public methods referred in other diagram(sequence diagram) must be mentioned in class diagram.
I have public method for managed bean and EJBs. So I can mention method call for 2 and 3(mentioned above) in sequence diagram. There is no custom public method in Controller/Faces servlet.

So what shall I mention in 1(JSF page ------> FacesServlet). In bothe Humphrey Sheil book and Amritendu's book, they have mentioned some public method in sequence diagram between UI page and Controller. But those methods are not present in class diagram's controller/FacesServlet.
What can be done? Suggestion please.
 
Bartender
Posts: 20980
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a difference between messaging and invoking methods, even though invoking a method can be part of a messaging process.

As far as an actual method in FacesServlet(), it's probably service(), which is NOT invoked from the client, but rather from the JEE container. Which, in turn is NOT invoked as a method invocation from the client, since the client does its messaging via an HTTP request over the network. A client cannot invoke server methods directly, since the client and server are separate machines, operating in separate memory and program execution spaces.
 
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!