Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

public method name in sequence diagram for JSF page to FacesServlet

 
Ranch Hand
Posts: 46
  • 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.
 
Saloon Keeper
Posts: 22490
151
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.
 
Pay attention! Tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic