explain session java bean and message drivers java bean
Answers
A message driven bean is a stateless, server-side, transaction-aware component that is driven by a Java message. It is invoked by the EJB Container when a message is received from a JMS Queue or Topic. Message processing before (above) and after (below) Message Driven Beans.
A session bean is an EJB 3.0 or EJB 2.1 enterprise bean component created by a client for the duration of a single client/server session. From a client's perspective, a session bean is a nonpersistent object that implements some business logic running on the application server.
A message-driven bean is an enterprise bean that allows Java EE applications to process messages asynchronously. This type of bean normally acts as a JMS message listener, which is similar to an event listener but receives JMS messages instead of events.