O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required