| View: | [ 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Using Message-Driven Beans with EJB 2.1 by Robert Eckstein - [Clicks: 73]
There are three types of Enterprise JavaBeans (EJB) technology components: session beans, entity beans, and message-driven beans (or MDBs). Session beans, which can be both stateful and stateless, often represent business processes. Stateful session beans are typically accessed by a single client at a time, however both stateful and stateless session beans are accessed in a synchronous manner, and both are non-persistent. By comparison, entity beans represent business data that is saved to persistent storage. MDBs allow J2EE applications to use the Java Message Service (JMS) API to process messages between a bean and a client asynchronously. MDBs are the newest form of EJB -- they were introduced with EJB 2.0. When introduced, MDBs allowed J2EE applications to use the Java Message Service (JMS) API to process messages between a bean and a client asynchronously.
[Includes source code]
http://java.sun.com/developer/EJTechTips/2005/tt0322.html#1 - Mar, 2005