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.
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.
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.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"