WhichtwoarecharacteristicsoftheFrontControllerpattern?()
A. Itsimplifiesremoteinterfacestodistributedobjects.
B. Itpromotescleanerapplicationpartitioningandencouragesreuse.
C. Itprovidesaninitialpointofcontactforhandlingallrelatedrequests.
D. Itreducesmaintainabilityduetotheincreasedcomplexityofthedesign.
E. Itprovideslooselycoupledhandlersthatcanbecombinedinvariouspermutations.
查看答案
AdeveloperisdesigningawebapplicationwhichextensivelyusesEJBsandJMS.ThedeveloperfindsthatthereisalotofduplicatedcodetobuildtheJNDIcontextstoaccessthebeansandqueues.Further,becauseofthecomplexity,therearenumerouserrorsinthecode.WhichJ2EEdesignpatternprovidesasolutionforthisproblem?()
A. Command
B. TransferObject
C. ServiceLocator
D. SessionFacade
E. BusinessDelegate