nerdexam
Oracle

1Z0-895 · Question #52

Which two are true about the client view of a message-driven bean? (Choose two.)

The correct answer is B. References to message destinations cannot be looked up in the client's JNDI namespace. C. Clients of a message destination need to know that the destination is listened to by a pool of message. Client components do not locate message-driven beans and invoke methods directly on them. Instead, a client accesses a message-driven bean through, for example, JMS by sending messagesto the message destination for which the message-driven bean class is the MessageListener. The…

JMS and Message-Driven Beans

Question

Which two are true about the client view of a message-driven bean? (Choose two.)

Options

  • AReferences to message destinations can be infected.
  • BReferences to message destinations cannot be looked up in the client's JNDI namespace.
  • CClients of a message destination need to know that the destination is listened to by a pool of message
  • DClients of a message destination do NOT need to know that the destination is listened to by a message-

How the community answered

(28 responses)
  • A
    21% (6)
  • B
    71% (20)
  • D
    7% (2)

Explanation

Client components do not locate message-driven beans and invoke methods directly on them. Instead, a client accesses a message-driven bean through, for example, JMS by sending messagesto the message destination for which the message-driven bean class is the MessageListener. The Java EE 6 Tutorial, What is a Message-Driven Bean?

Topics

#message-driven bean client view#message destination#JNDI namespace

Community Discussion

No community discussion yet for this question.

Full 1Z0-895 Practice