相关考题
-
单项选择题
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
A. Command
B. Transfer object
C. Service locator
D. Session Façade
E. Business delegate
F. Data access object -
多项选择题
Whichthe twoarecharacteristicsoftheServiceLocatorpattern?()
A. It encapsulates component lookup procedures
B. It increases source code duplication and decreases reuse
C. It improves client performance by caching context and factory objects
D. It degrades network performance due to increased access to distributed lookup services -
单项选择题
Assumethetaghandlerforast:simpletagextendsSimpleTagSupport.Inwhatwaycanscriptletcodebeusedinthebodyofst:simple?()
A. Set the body content type to JSP in the TLD
B. Scriptlet code is NOT legal in the body of st:simple
C. Add scripting-enabled= “true” to the start tag for the st:simple element
D. Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag.
