Q&A

Q1: What are the major differences between Message-driven beans and Entity or Session beans?
A1: Message-driven beans have no client interface; they have no Home, Local, or Remote interfaces—their methods cannot be called directly. Message-driven beans exist only to consume JMS messages and are controlled by the container. They are anonymous and are called asynchronously. They do not have a passive state. They have no client security context.
Q2:What are the two interfaces a Message-driven bean must implement?
A2: The javax.ejb.MessageDrivenBean interface and the javax.jms.MessageListener interface.
Q3:What is the Method Ready Pool?
A3: The Method Ready Pool is the collection of Message-driven bean instances that are available in the container ...

Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.