Entity is used for storage access... Statefull / Stateless Sessions contain / execute a activity or business process..\nMDBs handle inbound messages... \n\nExample: JMS message is sent from a Web Server application requesting account details for a user from the backend host, a MDB is triggered on the inbound traffic, MDB calls up the Session EJB Customer account details service, Session calls a collection of security / role access, web services, jdbc and / or entity beans to grab the data, MDB mediates the reply and responds to the reply queue.\n\nIn my souces I've included a link to a book on this subject.
can anyone explain what are Entity,Session and Message Driven beans in Ejb with a simple example ?