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…
Question
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)- A21% (6)
- B71% (20)
- D7% (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
Community Discussion
No community discussion yet for this question.