Hy everybody,
I was not sure how to combine
patterns to make my architecture capable of supporting multiple clients.
In order to comply with a QoS reqirement, stating that users of the standalone client shall have faster
access and more availability, i thought directly connecting these clients to the
ejb layer would be wise,
assuming they are in the company intranet.
Now, my first problem came as I made the uml diagrams, as I realized that I don't know where to put
the controller (I've got business delegates accessing session facade SLSBs).
Should it be all on the clients - as
servlets, respectivelly some controller classes for the swing app?
Reading the pattern descriptions, I thought, there must be a way to share some of the fuctionality (and surelly code)
of the controller between the clients; after some strugle, searching and reading (thanx for your posts, girls & guys)
i just found a superbe description of what i wannted:
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications/client_tier/multiple_types/index.html#1028399 beautiful MVC: part of the controller can be shared! beautiful!
Now, beeing curious, why I didn't find this before, i went to the second(current) edition of the "holly book", that i read carefully,
some time ago, and BANG!!! SURPRISE!!! the section isn't there anymore! instead, the reader is presented a link to another chapter:
section 4.4.2.2, which explains how to design THE WEB TIER to support multiple types of clients:
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html#1078111 Thanks for your patience, to read all this, now, my questions to everyone:
1) DOES THIS MEAN, THAT DIRECTLY CONNECTING TO THE EJB LAYER, FROM A RICH CLIENT, IS NOW
BEEING "BANNED" BY THE BLUEPRINTS TEAM/SUN ? ( this equals my design is f***ed up ;-)
2) how could i comply with that QoS requirement, if i used the second approach - routing both types of
clients through the web tier? are there some (standard) strategies to follow?
greetings
Rudi
SCJP,
SCEA I