9.3. Message-Driven Beans and JDO
A message-driven bean is a server-side message consumer that has, according to the EJB specification[3] the following characteristics:
Executes upon receipt of a single client message.
Is asynchronously invoked by container on arrival of messages, never called directly by a client.
Can be transaction-aware.
Is relatively short-lived and is stateless. (A typical EJB container provides a scalable runtime environment to execute a large number of message-driven beans concurrently.)
The EJB 2.0 specification supported only JMS message-driven beans. The EJB 2.1 specification extends the message-driven bean contracts to support other messaging types in addition to JMS.
Transaction demarcation ...
Get Core Java™ Data Objects 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.