nerdexam
Oracle

1Z0-899 · Question #78

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…

The correct answer is C. Service Locator. See the full explanation below for the reasoning.

Question

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?

Options

  • ACommand
  • BTransfer Object
  • CService Locator
  • DSession Facade
  • EBusiness Delegate
  • FData Access Object

How the community answered

(28 responses)
  • A
    11% (3)
  • B
    4% (1)
  • C
    82% (23)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice