This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

public method name in sequence diagram for JSF page to FacesServlet

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 24894
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic